Connecting Tech Pros Worldwide Help | Site Map

what is teh event name for after a form is created and loaded

jg
Guest
 
Posts: n/a
#1: Jan 4 '06
In windows project with only one single class and the start-up object is the
form itself.

form load event seems to be before the form is loaded

How do I create a post form loaded event? I am having trouble finding the
right keyword for the event after a forma is created and loaded. I have some
processing required at this point before anything else


Ken Tucker [MVP]
Guest
 
Posts: n/a
#2: Jan 4 '06

re: what is teh event name for after a form is created and loaded


Hi,

http://www.knowdotnet.com/articles/e...ringorder.html

Ken
-----------------
"jg" <junk@mail.pls> wrote in message
news:OFtkzhXEGHA.2436@TK2MSFTNGP15.phx.gbl...[color=blue]
> In windows project with only one single class and the start-up object is
> the form itself.
>
> form load event seems to be before the form is loaded
>
> How do I create a post form loaded event? I am having trouble finding the
> right keyword for the event after a forma is created and loaded. I have
> some processing required at this point before anything else
>[/color]


Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#3: Jan 4 '06

re: what is teh event name for after a form is created and loaded


"jg" <junk@mail.pls> schrieb:[color=blue]
> form load event seems to be before the form is loaded[/color]

It occurs before the form is shown.
[color=blue]
> How do I create a post form loaded event?[/color]

Either show the form by calling its 'Show' method inside the 'Load' event
handler and place the code the method call or handle the form's 'Shown'
event handler, if you are using .NET 2.0.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Armin Zingler
Guest
 
Posts: n/a
#4: Jan 5 '06

re: what is teh event name for after a form is created and loaded


"jg" <junk@mail.pls> schrieb[color=blue]
> In windows project with only one single class and the start-up
> object is the form itself.
>
> form load event seems to be before the form is loaded
>
> How do I create a post form loaded event? I am having trouble
> finding the right keyword for the event after a forma is created and
> loaded. I have some processing required at this point before
> anything else[/color]


You are showing it, thus you know when it has been shown: after calling
show. Therefore you can not use the default startup object mechanism.
Instead:

shared sub main
dim f as new form1
f.show
f.refresh
'form shown here
application.run(f)
end sub



Armin

Closed Thread