REPOST: Textbox Bug

  • Thread starter Thread starter John Baro
  • Start date Start date
J

John Baro

I have a textbox that is set to readonly = true
I change the backcolor to color.red in the enter event.
I change the backcolor back to systemcolors.control in the leave event.
Textbox now has a red border until I move the mouse over it.
Any ideas how to fix this would be great.

Cheers
JB
 
Thanks for the reply Ravichandran
Unfortunately there is no bordercolor property to set.
 
John said:
I have a textbox that is set to readonly = true
I change the backcolor to color.red in the enter event.
I change the backcolor back to systemcolors.control in the leave event.
Textbox now has a red border until I move the mouse over it.
Any ideas how to fix this would be great.

What happens if you call

textBox.Refresh();

after setting the colour back?

I can't test this myself since I can't reproduce your problem.
 
Back
Top