T
TomC
I want to bypass the Windows Form Designer in VS, to create a form
programmatically. The elements of the form are to be arranged in a
table, and I want the size of the table (and therefore the number of
elements) to be determined at runtime, so dragging and dropping on the
Form Designer won't cut the mustard.
I'm coming from a Java background, and have almost always built my
GUI's programmatically, but I realize that in C# this practice is the
exception, rather than the rule.
I created a version of what I'm trying to create in the Forms
Designer, and I've been studying the generated code. I think that I
have a decent idea regarding most of what I need to do, but I'm not
sure if I should tinker with that code, or eliminate that file from
the solution and start my own file. I'm also not clear whether that
file is subclassing the System.Windows.Form class, or just
instantiating an instance of it. I also thought I'd better ask if
there are any particular "gotcha's" that I need to look out for.
TIA
Tom
programmatically. The elements of the form are to be arranged in a
table, and I want the size of the table (and therefore the number of
elements) to be determined at runtime, so dragging and dropping on the
Form Designer won't cut the mustard.
I'm coming from a Java background, and have almost always built my
GUI's programmatically, but I realize that in C# this practice is the
exception, rather than the rule.
I created a version of what I'm trying to create in the Forms
Designer, and I've been studying the generated code. I think that I
have a decent idea regarding most of what I need to do, but I'm not
sure if I should tinker with that code, or eliminate that file from
the solution and start my own file. I'm also not clear whether that
file is subclassing the System.Windows.Form class, or just
instantiating an instance of it. I also thought I'd better ask if
there are any particular "gotcha's" that I need to look out for.
TIA
Tom