T
thomasp
Using VB 2005 Beta.
I have a form containing a DataGirdView. The cell enter, cell validating,
row enter, row validating events have a good bit of code that gets excuted
for each of these events. I have noticed that when the form loads, each of
these events run 3 times, before the form is ready for interaction with the
user. I would like to set a boolean variable to true when the form first
starts loading and change it's value when the form is ready to be used.
Hopefully I can test the value of this variable before each of the events
and speed my load time up a bit. Thing is I can not find the event where I
should change the variable. I have tried FormLoaded, Activated, and
gotFocus, but the 4 events mentioned earlier still run at least once after
each of these events. Can someone tell me what the last event that a form
runs before it is ready for user interaction?
Thanks,
Thomas
I have a form containing a DataGirdView. The cell enter, cell validating,
row enter, row validating events have a good bit of code that gets excuted
for each of these events. I have noticed that when the form loads, each of
these events run 3 times, before the form is ready for interaction with the
user. I would like to set a boolean variable to true when the form first
starts loading and change it's value when the form is ready to be used.
Hopefully I can test the value of this variable before each of the events
and speed my load time up a bit. Thing is I can not find the event where I
should change the variable. I have tried FormLoaded, Activated, and
gotFocus, but the 4 events mentioned earlier still run at least once after
each of these events. Can someone tell me what the last event that a form
runs before it is ready for user interaction?
Thanks,
Thomas