1,105,402 Community Members

Issue with textbox

Member Avatar
ASPLOST
Newbie Poster
1 post since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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.

Member Avatar
hericles
Veteran Poster
1,078 posts since Nov 2007
Reputation Points: 98 [?]
Q&As Helped to Solve: 232 [?]
Skill Endorsements: 14 [?]
Featured
 
0
 

We won't be able to help you without seeing the relevant code.

Member Avatar
thines01
Postaholic
2,420 posts since Oct 2009
Reputation Points: 389 [?]
Q&As Helped to Solve: 413 [?]
Skill Endorsements: 10 [?]
Team Colleague
Featured
 
0
 

Are you resetting your values?
Do you have the code that chooses the textbox and content and color in a function?

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article