In VO we use EditFocusChange to set a class variable telling which control got focus.
I have not yet understood how this works in X# WInforms.
I tried adding an individual method for each control for which the program needs to be aware of when it gets focus:
Code: Select all
Method textBoxTo_GotFocus(sender As Object, e As EventArgs)
Code: Select all
Self:textBoxTo:GotFocus+=textBoxTo_GotFocus
Error XS0407 'usual MyPrg.textBoxTo_GotFocus(object, System.EventArgs)' has the wrong return type
What should I do differently?
Or did I miss a Winforms equivalent of EditFocusChange ?
Dick