I have a Function. In a part of the logic within this Function (Function1) I have a call to Function2(x)
This passes variable x into this new function (Function2) and opens a form. (frmexample)
How can I set the cursor to load in a particular text box? At the moment by default when the form loads, the cursor is in the first textbox on the form.
I’ve tried:
frmexample.txtputcursorinthisbox.SetFocus
Which doesn’t work, the tab index is 31, perhaps there is a way to use this information to correct the cursors placement?
Thanks!
I had this in the wrong place – before I (frmexample.show)
This worked fine once it was in the right place.