ThermoSight
November 15th, 2005, 09:53 PM
Certainly this is an instance of the the lowest possible priority of question but I am kinda curious...
I have a form which has two text boxes, one for an IP address, one for a port number (yes, I should combine'em but I haven't ... yet). Above one and beneath the other are normally-invisible labels bearing helpful text. The 'properties' window clearly shows that the 'forecolor' is red.
It was my intention that when the program detected an invalid IP address or Port number, that the appropriate label would display its text (range of valid port nos., or IP address example) in red text to catch the user's eye.
Well, it USETA work, but today I discovered that when the program detects an error, the label is made visible but the text is black even though the 'properties' window clearly shows the 'forecolor' property to be red. Oh! and inspection of the normally-hidden "InitializeComponent" code in the .h file confirms my request for red text.
Any idea what I'm doing wrong that would cause the form to ignore my request for red text?
thanks,
bill
I have a form which has two text boxes, one for an IP address, one for a port number (yes, I should combine'em but I haven't ... yet). Above one and beneath the other are normally-invisible labels bearing helpful text. The 'properties' window clearly shows that the 'forecolor' is red.
It was my intention that when the program detected an invalid IP address or Port number, that the appropriate label would display its text (range of valid port nos., or IP address example) in red text to catch the user's eye.
Well, it USETA work, but today I discovered that when the program detects an error, the label is made visible but the text is black even though the 'properties' window clearly shows the 'forecolor' property to be red. Oh! and inspection of the normally-hidden "InitializeComponent" code in the .h file confirms my request for red text.
Any idea what I'm doing wrong that would cause the form to ignore my request for red text?
thanks,
bill