I have a layout created via the designer that has 10 views of the type EditText (not initialized), that only accept numeric values. I would like to accomplish the following:
Whenever an Edittext box has focus= TRUE, I would like the background color of the box to change to cyan,. Whenever it loses focus (hasfocus=FALSE), I would like the background to change back to white. I would like it done programmatically and automatically rather than to repeat writing the code 10 times, once for each of the 10 EditText boxes like this:
EditText1_FocusChanged(Hasfocus As Boolean)
If hasfocus=true then
EditText1.Color=Colors.Cyan
Else
EditText1.Color=Colors.White
End Sub
I tried using the Sender feature, but was unsuccessful. Thank you very much for any tips or assistance.
Whenever an Edittext box has focus= TRUE, I would like the background color of the box to change to cyan,. Whenever it loses focus (hasfocus=FALSE), I would like the background to change back to white. I would like it done programmatically and automatically rather than to repeat writing the code 10 times, once for each of the 10 EditText boxes like this:
EditText1_FocusChanged(Hasfocus As Boolean)
If hasfocus=true then
EditText1.Color=Colors.Cyan
Else
EditText1.Color=Colors.White
End Sub
I tried using the Sender feature, but was unsuccessful. Thank you very much for any tips or assistance.