Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form focus() VB.net

Status
Not open for further replies.

massageadm

Programmer
Joined
May 29, 2009
Messages
5
Location
US
When the applicartion starts it is not the primary focus and the user has to click on the form in order for it to be. I have tried to use Me.txtLastName.Focus() as the last line that invokes but that does not seem to work.

Note: While running the application in debug the forms focus is set correctly, it's only after a compile that this issue shows up (while running the exe).

Thanks in advance for any help or suggestions you can give!
 
Figured it out. Use Me.txtLastName.Focus()
 
Sorry posted the line after the line I should have. It should be this:

Me.Activate()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top