If I understand your problem correctly, the fix is pretty simple.
Create a class level boolean variable in your form class.
Private m_IsLoading as boolean=true
Add this line as the first line inside your events that you don't want to
run while VS is initiailizing the form at startup.
Public Sub SomeEvent(s as sender, e as eventargs) handles blah.blah
If m_IsLoading = True Then Return
' rest of event code here...
End Sub
Then in your Form Load event set m_IsLoading=false.
This solved a lot of issues I had like this.
HTH,
Greg
"Woody Splawn" <No**********@jts.bz> wrote in message
news:e2**************@TK2MSFTNGP09.phx.gbl...
I had it happen again today that I needed some code to run upon loading the
form but the code that I needed to have run needed to run AFTER all the
rest
of Visual Studio's events had fired. Due to the fact that the Visual
Studio
events continued to fire after I ran my code, it goofed things up. Isn't
there any way to fix it so that the code you want to run upon startup of a
form is insured to run only after VS has fired all it's events?