Question StartUp-Form does not receive the focus

Robert_Zenz

Well-known member
Joined
Jun 3, 2008
Messages
503
Location
Vienna, Austria
Programming Experience
3-5
Hello.

I have a problem with a project, in which the login-form does not receive the focus on startup. I've defined a Splashscreen and the login-form as Startup form, but if I start my application the form stays in the back and does not receive the focus.

I already tried the following:
VB.NET:
Me.Focus()
Me.Select()
AppActivate(Process.GetCurrentProcess.ID)

But still, the form does only get the focus if clicked.

Anybody any ideas?
Bobby
 
Back
Top