How to Load a Form without display it in C#?

  • Thread starter Thread starter artificer
  • Start date Start date
A

artificer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Form Loading 4
VB6 Component Issue with TDBGRID 0
Converting VB6 to C# 1
Advice on moving to C# 5
LSP to C# 0
Pre Load a form 1
100Ah 12v Battery voltage under load 7
Z-order not working for stacked panels 5

Back
Top