In my program I have a hint button for a puzzle that randomly selects a textbox, populates it with a number, and changes its background color.
The issue is that the hint button works correctly for the first 2 hits, but after that the previous textboxes that were colored will go back to the default color and some other textbox then the randomly selected one will change color.
1 Year Ago
Related Article:Losing focus from TextBox
is a C# discussion thread by barnum that has 3 replies, was last updated 10 months ago and has been tagged with the keywords: winforms, textbox, focus.