Kosta
Nov 30th, 2002, 05:39 PM
Hello,
I'm hoping someone can help me out here...
If I "TextBox1.Enabled = False" so that text can not be typed or even selected, the ForeColor for that TextBox1 (the font color) is changed automatically to a sort of greyed-out bronze color. How can I keep the "TextBox.ForeColor = System.Drawing.Color.Black" regardless of wether or not the control is enabled. I'm guessing it has something to do with deriving my own CustomTextBoxClass, but an example would be really helpful.
Also, how would I scroll the text in TextBox1 from left to right and back again automatically, without showing any scrollbars, if the text is longer than the width of the TextBox? I'm looking for the same effect used in WinAmp when it's scrolling the song title back and forth.
Thanks!
Kosta
I'm hoping someone can help me out here...
If I "TextBox1.Enabled = False" so that text can not be typed or even selected, the ForeColor for that TextBox1 (the font color) is changed automatically to a sort of greyed-out bronze color. How can I keep the "TextBox.ForeColor = System.Drawing.Color.Black" regardless of wether or not the control is enabled. I'm guessing it has something to do with deriving my own CustomTextBoxClass, but an example would be really helpful.
Also, how would I scroll the text in TextBox1 from left to right and back again automatically, without showing any scrollbars, if the text is longer than the width of the TextBox? I'm looking for the same effect used in WinAmp when it's scrolling the song title back and forth.
Thanks!
Kosta