Loading then showing a form 
Author Message
 Loading then showing a form

In VB 6 I was used to Loading a form then Showing a form with a seperate
command, eg.

load form1
form1.show

In VB.NET I'm using Form1.show().  The problem with this is I can see all my
controls moving on the screen.  For example I dynamically load an unload
status bars, etc in the Form1_Load event.

Can I hide the form until the controls have finished drawing, or is there a
better way?

Many thanks
Chris



Mon, 31 Jan 2005 17:06:21 GMT  
 Loading then showing a form
Well what u can do is instead of writing the code for moving the control in
Form_Load, u can use it's constructor i. e. Sub New()
u can write ur code after InitializeComponent is called

Bye
Kunal M


Quote:
> In VB 6 I was used to Loading a form then Showing a form with a seperate
> command, eg.

> load form1
> form1.show

> In VB.NET I'm using Form1.show().  The problem with this is I can see all
my
> controls moving on the screen.  For example I dynamically load an unload
> status bars, etc in the Form1_Load event.

> Can I hide the form until the controls have finished drawing, or is there
a
> better way?

> Many thanks
> Chris



Mon, 31 Jan 2005 18:40:08 GMT  
 Loading then showing a form

Quote:
> In VB 6 I was used to Loading a form then Showing a form with a
> seperate command, eg.

> load form1
> form1.show

> In VB.NET I'm using Form1.show().  The problem with this is I
> can see all my controls moving on the screen.  For example I
> dynamically load an unload status bars, etc in the Form1_Load
> event.

> Can I hide the form until the controls have finished drawing, or
> is there a better way?

Is it possible to create the controls in the constructor?
BTW, my forms are not visible in the Load event yet so I don't have a
problem creating them in the load event.

Armin



Mon, 31 Jan 2005 19:26:31 GMT  
 Loading then showing a form
Thanks Kunal, i'll give that a try.

Chris


Quote:
> Well what u can do is instead of writing the code for moving the control
in
> Form_Load, u can use it's constructor i. e. Sub New()
> u can write ur code after InitializeComponent is called

> Bye
> Kunal M



> > In VB 6 I was used to Loading a form then Showing a form with a seperate
> > command, eg.

> > load form1
> > form1.show

> > In VB.NET I'm using Form1.show().  The problem with this is I can see
all
> my
> > controls moving on the screen.  For example I dynamically load an unload
> > status bars, etc in the Form1_Load event.

> > Can I hide the form until the controls have finished drawing, or is
there
> a
> > better way?

> > Many thanks
> > Chris



Mon, 31 Jan 2005 22:07:04 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. ???????? GURUS - Showing or Loading Forms by use of String variable containing Form Name

2. Must I load the form before form.show?

3. loading/showing forms in vb.net

4. Show form while loading Data

5. Load form vs.Show method

6. Load Form first then show

7. Child form always show when loading

8. Form show while another is loading HELP

9. Modal Form Load/Show question

10. VB3 MDI Child Form Shown On Load

11. Form Show, Load, Activate problems

12. Form shows the same Data from initial load

 

 
Powered by phpBB® Forum Software