473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Form_Load event.

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
3 3892
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
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
* 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil IU Guy | last post by:
I am having 2 issues, both acting very randomly, and for the most part I dont get this message on most computers, but I have had a couple computers get either issue 1, or issue 2. Issue #1: I...
6
by: deko | last post by:
Is there a difference between the Form_Open and Form_Load events? When should I use one rather than the other? I have several forms that require code to run when they open... or is it when they...
4
by: Cybertof | last post by:
Hello, I would like to focus on a special control on my form during Form_Load inialisation. The focused control may change according to internal parameter value (so it's not always the same...
2
by: alexia.bee | last post by:
Hi All, I have window based app which has two classes. Class A and Clas B Call B Inherits from Class A. Class A has events. How do I cause Class B not to use Class A events. For example:...
5
by: John Dann | last post by:
Something very simple that I can't spot how to do: I wand to display a msgbox showing some current configuration parameters when my VB2005 program starts up. However, I want the main form to...
2
by: =?Utf-8?B?VG9u?= | last post by:
Hello, I want to understand teh benefits of ajax technology. Does anyone has a good website where AJAX EXTENSIONS is worked out so I really understand it. There a 2 main questions: 1) How about...
9
neo008
by: neo008 | last post by:
Hi all, Why Control_Change() event is fired before Form_Load()? NE☼
34
by: Smithers | last post by:
I have some logic that populates UI controls with values from App.config. A couple of checkboxes get checked or unchecked; and items loaded into a checked list box. Two reasonable places to put...
4
by: Dom | last post by:
How do I end a program while in Form_Load? I tried both this.Close(), and Application.Exit(), but neither will just end the program there and then. Instead, both allow Form_Load to continue.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.