Click here to Skip to main content
15,891,629 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
hello guys, i'm a biginner C# programmer and actually i'm little confused where to start from to make an application allows me to design for exemple an intern design for a Cofe shop or restaurant ?

to make the picture clear here is an exemple to what i want to do, most of us had worked some winforms projects in Visual studio when you have a default Form so all you have to do is to drag and drop controls inside it and position them using the mouse ...ect, thats exactly what i'm looking for assuming that Form is my Canvas and controls are my objects ( Table , Bar , Chairs ...)

if any one could help i'll be so glad, last but not least please excuse my weak english because i'm non english guy.

Best regards
Posted
Comments
Sergey Alexandrovich Kryukov 28-Oct-15 19:56pm    
Frankly, this is not how UI is created. It is done by using your head. This should be your main resource. Few answers cannot teach it, so let's not even start. Use your head, learn programming, use MSDN for reference.
Just remember: your idea to do development by drag and drop is a sure way to do too much dumb work with very low-quality results.
—SA

First be aware that the project you described is "advanced" in certain ways, and is probably not the best path for you to improve your fundamental skills, and understanding, of developing in WinForms ... at the level you (probably) are at now.

To get ideas for how, in the future, you may go about a project like this: start searching CodeProject for articles that have similar requirements (a "canvas," drag-drop of pre-defined objects, virtual spatial measurement, etc.). There are articles like that here.

Then make a "plan of action," a set of tasks you will need to accomplish; that may involve:

0. creating the "canvas" (the workspace), saving and loading the canvas and the objects on it.

1. creating a Tool Palette(s) ... either UserControl, or Form, that will contain some representation of your user's elements (chairs, tables) ... probably an icon in a ToolPanel

2. drag-drop an icon on the tool palette to your canvas; when dropped a new object is created and rendered on the canvas.

3. run-time positioning (and re-sizing ?) of objects (chairs, tables) on the canvas ... deleting, copying, those objects, etc.

At this point in time I suggest you get a good book on .NET WinForms (like those by authors Jesse Liberty, and/or Chris Sells), and educate yourself about "the basics."
 
Share this answer
 
Wrong way.
You will not learn programming by doing a real project and asking every single step for advices.
Learning programming is far more than learning a language syntax.
My road map:
- read language documentation, do exercises, follow tutorials.
- Google is your friend.
- Abuse of Debugger to see what the code is doing step by step, it gives you an invaluable understanding of what is going on, inspect variables.
- Master Boolean Algebra, it is ubiquitous, Every time you test something, you use Boolean algebra.
- Master some analyse methods, Dijkstra Top-Down method is a good start.
https://en.wikipedia.org/wiki/Top-down_and_bottom-up_design[^]
https://en.wikipedia.org/wiki/Structured_programming[^]
https://en.wikipedia.org/wiki/Edsger_W._Dijkstra[^]
https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316.PDF[^]

Remember the exercises and little projects are not here to make something useful, they are here to teach you programming.
 
Share this answer
 
Comments
BillWoodruff 28-Oct-15 23:34pm    
My vote of #1: inappropriate, judgmental, lecturing of the OP.

"You will not learn programming by doing a real project and asking every single step for advices."

This is the OP's first question: who are you to judge their behavior at this point in time ?
Member 11523527 29-Oct-15 19:39pm    
i really appreciate your support, that means a lot to me
thank you so Much ^^
Member 11523527 29-Oct-15 19:39pm    
Hye #ppolymorphe actually i can done this this project somehow the only problem i got is a little conceptual concerning only the right way i should go on( Should i use a 2D engine as Games use Or maybe The Graphics Library ... ), and not every sigle step of code as you monsioned sir, any way your solution is very helpful thanks a lot
Patrice T 29-Oct-15 21:44pm    
I would start by listing the features I need, and the see how different possibilities (libraries) will fit.
Then do some little testing to check if the choice is right or not.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900