Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hi , i have a basic doubt regard

Status
Not open for further replies.

himridul

Programmer
Jun 23, 2003
62
0
0
US
hi ,
i have a basic doubt regarding VB . What r the background events when a program is running from the scratch.
I've consulted many books , but didn't get satisfactory answers .
Please help me.
 
" background events " - be more specific...

Known is handfull, Unknown is worldfull
 
I want to know about the events when we run a vb project .
Is form_load is the first event ?
 
Hi, if you are asking about events order, on an form, they are in this order:
_Initialize
_Load
_Activate (each time form get focus)

... (Other events order depends on user / system )

On Unload of a form, they are:

_QueryUnload
_Unload
_Terminate

I hope this helps you,
Carlos
 
CmPaiva, you missed the _Resize event that occurs after _Load event and before _Activate event.
 
The Got_Focus and the Paint event also occur immediately after the Activate event.
If the form is already loaded then only the Resize, Activate, GotFocus and Paint event fire.


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Hi,
You're Right. It's fired whenever the form is resized, and this happens for the first time, just after the Load event.

Good point.

Carlos
 

And the Paint event:

Initialize
Load
Resize
Activate
Paint


 

Got_Focus will not fire when you may think it would.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top