7 replies
by kyle b.
out this in the form.load of the first form:
Load frmForm2
'change this to reflect the name of the second form obviously
then when you want the form to be displayed:
frmForm2.Show
let me know how it goes
Kyle
by atulmori
in VB a Form is loaded with the first reference to the form, not just with the .Load method, and becames visible with the .Show method or by setting the visible property to true after the form is loaded
In order to speed up loading time you should avoid having a complex Form_Load Event.
If you want to find out when the form is loaded just use a boolean variable that is set to true in the last line of the Form_Load Event
by atulmori
by rrv
Even if you load or refer to the second form from first form to load while showing the first one the system will take the same time to load the second form although without showing.
to avoid this do not load any control or data in the form load event. write functions which load data. call these functions whenever the user is inputting data in the first form and use doevents in those functions.
this logic definitely helps me while i load huge data from AS/400 server into VB grids.
All thebest
RV
by atulmori
by atulmori
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending