473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

TextBox not reflecting changes made to it

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
Nov 16 '05 #1
1 1615
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

"James Divine" <Ja*********@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com... 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

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Option^Explicit | last post by:
What I'm trying to do: Open a text file and display the contents in a text box (I've done this) Need to be able to edit the file from within the textbox and have it save back to the source...
5
by: Steve S | last post by:
Heres what I want to do...User types into a texbox, clicks a button, the button saves that text to a file. The problem is that when I click the submit button, any changes made to the textbox are...
3
by: Steven.Dahlin | last post by:
I have a situation where the htmlcontrols are not reflecting changes made to the textboxes when the page is returned to the server. I have a set of textboxes configured like so: <input...
6
by: JohnR | last post by:
I have a table with 1 row which is used to hold some application wide items (one item per field, hence I only need 1 row). I want to bind one of the fields to a textbox. After setting up the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.