|
-
Apr 11th, 2005, 10:49 AM
#1
Thread Starter
Addicted Member
vb6 text boxes
I have a form with text boxes on it.
for the text box if text.enabled = flase then the value in the text box
turns to very light gray (sometimes not readable) Hence Can this color be changed ??
-
Apr 11th, 2005, 10:55 AM
#2
Re: vb6 text boxes
 Originally Posted by Micky
I have a form with text boxes on it.
for the text box if text.enabled = flase then the value in the text box
turns to very light gray (sometimes not readable) Hence Can this color be changed ??
Not if you disable it, no. That is the standard DISABLED look of all VB controls.
If you want to "fake" the disabled feature, then you can set its .Locked property to True. Prior to doing that you can set the forecolor to whatever you want, and then when/if you unlock it, set the forecolor back to vbBlack.
-
Apr 11th, 2005, 10:56 AM
#3
Frenzied Member
Re: vb6 text boxes
Not sure if you can mess with the colours when disabling controls.
However, you might be able to get the effect you want by using
VB Code:
Text1.Locked = True
Text1.BackColor = vbScrollBars
<edit>
D'oh. You win this time Hack 
</edit>
-
Apr 11th, 2005, 10:58 AM
#4
Re: vb6 text boxes
if you are having so nobody can type into it consider a label, you could make it look like a textbox or you could put it in a container, something like a frame and disable the frame.
casey.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|