Main Form loses focus

  • Thread starter Thread starter TF
  • Start date Start date
T

TF

hi,
I am developing a windows form application in VB.Net that has a splash
screen in the begining before the application loads the main form. To
display splash screen i am loading splash form in the "main" sub in a
seperate thread that periodically checks a static property
"IsFormLoaded" of the main form and calls "Application.ExitThread" when
this property is "true". This property is set to true in the main form
"Load" event.

Everything works fine except that when splash form closes, the main
form loses the focus and if other applications are running(like Windows
Explorer etc.) it gets behind the top application window. I tried to
call "Me.Focus()" in the "Load" event of the main form but in vain.

any help!
 
Back
Top