Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create my own form designer?

Tags:

c#

forms

I'm starting my first C# project, and I want to make a "form designer" (like the one in VS).

The idea is, there will be a visual form designer with a limited toolbox, which will generate Python code (later more) to create the same form.

Problem is, I have no idea how to even get started. First of all, I have the form designer in VS: how do I make a "form-within-a-form?"

Next... I have no idea how complicated this is going to be. I suppose I could just make little boxes appear beside each control created on the form when it is clicked, for resizing, and make a textbox appear on it when double clicked or something, to change the text in it... Things like this.

So another thing I would like to know is this:
I do have programming experience in C and C++, I've done PHP for a number of years and am starting with Python as of recently. I've generated forms dynamically in VB6. Given this experience, am I in way over my head with this project?

like image 503
Carson Myers Avatar asked Mar 20 '10 06:03

Carson Myers


2 Answers

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

like image 176
Joel Avatar answered Nov 06 '22 12:11

Joel


It sounds like you're aware it's non-trivial for a C# first-timer. If you keep it pretty simple, it sounds like you're heading in the right direction (although a web-based form designer might be easier).

SharpDevelop would be an example of a full-featured IDE that can be re-purposed, but that's way over the top.

Good luck!

like image 3
machine elf Avatar answered Nov 06 '22 11:11

machine elf