Click here to Skip to main content
15,900,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am trying to navigate from one form to another,in breif i have Purchase bill form ...while i open this form my focus is set to party name combo box...when i press f3.. a new form for account master is get opened.While doing this the focus is set to combobox only while i want to set it on account master form...how to do this.
pls help.
Posted

Use Select()[^] or Focus()[^] method to set the input focus where you want.
 
Share this answer
 
Lets say you have a control on the master form called txtBox. In the OnLoad event of the form try something like this:

txtBox.Focus();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900