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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.