?
Solved

VB.Net Read only textbox

Posted on 2004-03-31
6
Medium Priority
?
544 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
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 750 total points
ID: 10724957
disregard that sorry
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

800 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