By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Form_Load event.

P: n/a
In vb6, you could do all the resizing of the form (and its constituent
controls) in the form_load event, knowing that the form won't show up
until the Form_load event was exited.

In my vb.net app, I resize a bunch of controls, etc... in the Form_Load
event, but it seems that when the form actually appears on the screen,
there is still resizing going on.

How can I make sure that the form shows up after all the resizing has
been finished.

Thanks.
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Frank,

There is a difference between the showing of a MDI form and the showing of a
normal form, what are you using.

The normal form shows in normal code up after the completion of the Load
event. (It shows up in that event earlier when you place in that by instance
"me.show")

I hope this helps?

Cor

"Frank Rizzo" <no****@nospam.com> schreef in bericht
news:ux**************@TK2MSFTNGP09.phx.gbl...
In vb6, you could do all the resizing of the form (and its constituent
controls) in the form_load event, knowing that the form won't show up
until the Form_load event was exited.

In my vb.net app, I resize a bunch of controls, etc... in the Form_Load
event, but it seems that when the form actually appears on the screen,
there is still resizing going on.

How can I make sure that the form shows up after all the resizing has
been finished.

Thanks.

Nov 21 '05 #2

P: n/a
Hi,

Form load event fires when the form is loading the activate event
fires after is loaded.

Ken
---------
"Frank Rizzo" <no****@nospam.com> wrote in message
news:ux**************@TK2MSFTNGP09.phx.gbl...
In vb6, you could do all the resizing of the form (and its constituent
controls) in the form_load event, knowing that the form won't show up
until the Form_load event was exited.

In my vb.net app, I resize a bunch of controls, etc... in the Form_Load
event, but it seems that when the form actually appears on the screen,
there is still resizing going on.

How can I make sure that the form shows up after all the resizing has
been finished.

Thanks.
Nov 21 '05 #3

P: n/a
* Frank Rizzo <no****@nospam.com> scripsit:
In vb6, you could do all the resizing of the form (and its constituent
controls) in the form_load event, knowing that the form won't show up
until the Form_load event was exited.

In my vb.net app, I resize a bunch of controls, etc... in the
Form_Load event, but it seems that when the form actually appears on
the screen, there is still resizing going on.


The form is shown after the last line of your 'Load' event handler is
executed. So you should no see any resizing going on. It's a known
problem that forms may flicker when being shown for the first time. To
speed up your resizing implementation, take a look at the form's
'SuspendLayout' and 'ResumeLayout' methods.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.