Hi there.
How can I change the background color of a textbox when it gets the focus?
I can handle the "Enter" event and do this
private void txtDummie_Enter (object sender, EventArgs e) {
txtDummie.BackC olor=Color.Red;
}
But how can I use this code to work with all textboxes in form? How can I
use "sender" argument?
Thanks in advance.
Regards,
Marco
How can I change the background color of a textbox when it gets the focus?
I can handle the "Enter" event and do this
private void txtDummie_Enter (object sender, EventArgs e) {
txtDummie.BackC olor=Color.Red;
}
But how can I use this code to work with all textboxes in form? How can I
use "sender" argument?
Thanks in advance.
Regards,
Marco
Comment