TextBox not reflecting changes made to it

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all... perhaps someone can shed some light on this one for me... I have a
TextBox on a Windows Form. When I make changes to the properties, the object
shows that they have been changed, but the TextBox itself does not actually
change. Here is an example.

txtSelectedValueBox.ForeColor = Color.Blue;

If I step over this code, I find that the ForeColor property is blue, but
unless my eyes deceive me, the text is still black.

It seems like my TextBox events aren't firing properly, but I don't know why.

Does anyone have a clue why this would be happening?

-James
--


James Divine, C# MCP

"We will either find a way, or make one." - Hannibal
 
That code works fine for me. Put a textbox on an empty form and try it.
If I step over this code, I find that the ForeColor property is blue
It won't show up until the textbox is repainted.

Chris
 
Back
Top