General information
Category:
Coding, syntax & commands
I made a class with 3 textbox and 1 combobox, I need to put 6 times this control (account1, account2, ...).
They are for getting acounting numbers and I have a command button to call a catalog, this catalog must know what control lost the focus to set the focus.
I got it know, I do it whith a form property and each Lostfous event in the 6 controls I give the control name to the property and when command button finishes, it Set the focus to the last control.
Example:
"account1.Lostfocus"
ThisForm.Lastfocus = This.Name
"command button Finishess(click event)"
cLastFocus = ThisForm.Lastfocus + '.'
ThisForm.&cLastFocus.SetFocus
And it works.
Thanks for you time Erick and David.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only