Solved

VB.Net Read only textbox

Posted on 2004-03-31
6
539 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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 …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

786 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