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

  • Thread starter Thread starter jg
  • Start date Start date
J

jg

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
 
jg said:
form load event seems to be before the form is loaded

It occurs before the form is shown.
How do I create a post form loaded event?

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.
 
jg said:
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


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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top