(it will keep track of a number, and if that number is above a certain value I want the text to turn red.)
The textbox is enabled and read-only.
I am using VB 2008 Express Edition, and my code looks as follows:
If Val(BPPosQual.Text) > 35 Then BPPosQual.ForeColor = Color.Red Else BPPosQual.ForeColor = Color.Black End If
When trying to debug this problem, I put messagebox.show() inside of the if statement, and had it output the color, which ended up being as i expected (red above 35, and black anywhere else)
I have another text box with the exact same code(aside from the textbox name) that works. So I am thoroughly perplexed. If anyone can offer some explanation as to why, I would be grateful.
This post has been edited by dobbersp: 10 June 2008 - 03:24 PM