Solved

VB.Net Read only textbox

Posted on 2004-03-31
6
534 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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, fr…

705 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

21 Experts available now in Live!

Get 1:1 Help Now