|
-
Jan 7th, 2009, 02:16 PM
#1
Thread Starter
Member
[2005] Setting ForColor on text from a disabled textbox + removing the right bar..
Hello folks,
As some of you are aware of, I am fairly new to VB.NET. I am trying to learn as much as I can.
I have a textbox which is set to multiline. It's setup to accept a maximum of 500 characters (10 lines of 50).
First of all, since it's size is fixed, how can I remove the right bar on the left as im not using it (the scrolling bar).
#2, once a user click on a button, I disable the textbox and display the text. I can set the background color, however it looks like when the textbox is disabled, text is gray and can't be changed.
A fix I found is to use a label and hide the textbox, but are there any easier way ?
Thanks
-
Jan 7th, 2009, 02:30 PM
#2
Thread Starter
Member
Re: [2005] Setting ForColor on text from a disabled textbox + removing the right bar..
Ah Ah! I found that you can use textbox.ReadOnly = True and then the color stays black..
That's fixed..
Now I have to find how to get rid of the scrolling bar. (My textbox is already sized but I would like to remove the arrow on the right. Is there an easy fix for that ?
Thanks
-
Jan 7th, 2009, 02:44 PM
#3
Thread Starter
Member
Re: [2005] Setting ForColor on text from a disabled textbox + removing the right bar..
And found the answer for the second question..
Attributes.Add("style","overflow :hidden")

Sorry for the thread, was able to answer my questions afterall 
SpykeYs!
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
|