Answer» Win XP Home - VB 4.
Just STARTING to learn VB and have a problem with foreground color in a text box. When viewing the form the text is WHITE (the background color SETS ok) but regardless of which forecolor I select in Properties the color does not change. When the prog is Run the forecolor changes to something like a buff color. The color hex number in the forecolor selection box remains as it was set by me.
What am I doing wrong please :-?How many colors is windows set to display? Right click the desktop, then click the settings tab and check the values.
VB will attempt to do what is programmed. I suspect the problem is further up the food chain when it comes time to display the control.
Let us KNOW. 8-)
Thanks Sidewinder.
R.clicked desktop then clicked Properties>Settings. This shows the Screen Resolution and Color Quality but no number of colors. R.clicked the VB shortcut and set the prog to run in Win 98 compatibility mode with 256 colors without that making any difference.
Any other suggestions please :-?The 256 colors was going to be my next suggestion.
Is this the only control on the form with this problem? If so, try DELETING the control and recreating it; you may have inadvertantly clicked a property that contradicts a foreground color setting. (enabled for instance).
I'm pretty much out of ideas. Never seen this problem before and Google is fairly quiet on this subject.
Good luck. 8-) Thanks again. I went right back to the beginning and 'rebuilt' the form and still have the same problem. I'm using the Sams Publishing 'Teach Yourself VB.4 in 21 Days', this is day 8 and I haven't got past Day 2 in the book [smiley=grin.gif] But then the book doesn't say which 21 days LOL
I'll Google for a specialised VB forum and post there.
Thanks again.
H..Problem caused by own stupidity. Believed was changing the TextBox but the Form Properties were in view.
Also the Properties instructions for the TextBox make no mention of making Enabled = True. They do mention making MultiLine=True but making this False changes nothing. Perhaps a bit of confusion there as well as here.
Thanks
H...
|