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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Focus on a field

Status
Not open for further replies.

nik11

Programmer
Feb 6, 2010
34
US
I am trying to generate an error message on a certain condition. This works fine but after I click OK on the message box, the focus goes on next field. Can anyone please tell me how can I keep the focus on the same field.
 
Assuming you are using a datawindow control you can use the setcolumn and setrow methods. Set up instance variables on the window which track the current column and row and then use those to 'reset' the focus after the messagebox is closed.

Matt

"Nature forges everything on the anvil of time"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top