I have been looking for a equivalent to the load statement of VB6 in C#.
Any suggestions?
hi,
not trying to be smart, but if you write:
Form1 form = new Form1();
then you have loaded a new Form1 object, without displaying it.
to put it on screen:
form.Show() or form.ShowDialog();
if you want a permanent reference to the form, you can make it a static
variable, or you could give class scope to the variable, instead of method
scope.
let me know if this does not answer your question.
tim
\\ email: tim at mackey dot ie // \\ blog: http://tim.mackey.ie //
67d0ebfec70e8db3
>I have been looking for a equivalent to the load statement of VB6 in C#.
> Any suggestions?