My application is developed in C# windows. On executing the application in Windows XP, login form is getting activated properly and focus is set to UserName_TextBox. But in windows server 2008, login form is not getting activated. only after clicking on the login form, its getting activated.
I have tried code like...
this.Activate(); this.ActiveControl = tbUserName;
or
this.Select();
Set the form as TopMost..etc.