How can I create my own form constructor?

I am starting my first C # project, and I want to create a “form constructor” (for example, the one that is in VS).

The idea is that a visual form designer will appear with a limited set of tools that will generate Python code (later more) to create the same form.

The problem is that I don’t even know how to get started. First of all, I have a form constructor in VS: how do I create a form "inside the form?"

Further ... I have no idea how difficult it will be. I believe that I could just create small rectangles next to each control created in the form when it is clicked, to resize and create a text box when double-clicked or something in it to change the text in it ... Such things.

So, one more thing I would like to know is: I have experience programming in C and C ++, I have done PHP for several years and start with Python. I dynamically generated forms in VB6. Given this experience, am I on my way with this project?

+6
c # forms
source share
3 answers

this one looks like a really good place to start. This one has a pretty good example to get you started. You can even download its source (registration required).

+5
source share

It sounds like you know that this is not trivial for the first C # timer. If you keep it pretty simple, it sounds like you are moving in the right direction (although it might be easier for a form designer on the Internet).

SharpDevelop will be an example of a fully functional development environment that can be reassigned, but even more so from above.

Good luck

+3
source share

For most people starting in C #, this project will be too big. With your VB6 background, you can turn it off.

Here's a tip: the Visual Studio Windows Forms designer draws controls on his surface - asking the controls to draw on their own.

+3
source share

All Articles