Main Form loses focus

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!
 

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

Top