Solved

VB.Net Read only textbox

Posted on 2004-03-31
6
536 Views
Last Modified: 2011-10-03
Hello, when I set my textbox to read only, it becomes transparent in colour, what i mean by this is that instead of the wite background, it turns grey (same colour as my form).

The textbox(es) are surrounded by a group box, but i dont think that that is effecting it...?

What is happening?  i want to have the textboxes white, not grey?

Thanks
0
Comment
Question by:sublimation
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 10724804
are you making the textbox's enabled property = false or it's read only property to true?
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 10724816
Why not use a Label its a read only textbox and you dont have to set any properties and you can set the Border to look like a textbox
0
 
LVL 4

Author Comment

by:sublimation
ID: 10724837
Hi, I need to use textbox and the enabled property is true.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 18

Expert Comment

by:bobbit31
ID: 10724856
workaround:

Textbox1.ReadOnly = true
Textbox1.BackColor = System.Drawing.Color.White
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 10724954
or

Textbox1.Enabled= False
Textbox1.BackColor = System.Drawing.Color.White
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 250 total points
ID: 10724957
disregard that sorry
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now