Microsoft
Software
Hardware
Network
Question : Set disabled backcolor to white
Hi
I have come across a problem with displaying a disabled backcolor.
I have a tab control (tbPage) with a page (pgDetail) which contains about 30 textboxes in it with enabled = false
In my Load event I have the follwoing code
foreach (Control ctrl in this.pgDetail.Controls)
{
if (ctrl is TextBox)
{
ctrl.BackColor = Color.White;
}
}
When I preview the page the textboxes are greyed out so the BackColor is not white. However, if I put in a messagebox and get the BackColor of the textbox it tells me that it is white.
When I change the to Color.Yellow all the textboxes are yellow. The same for other colors, just not white.
I think this maybe a bug with VS2008?
Any clues on how to fix this?
Answer : Set disabled backcolor to white
Its greyed out completely, so you can set the textbox property to readonly = true
and then set font\color etc.
Regards,
CT.
CuteAssistant - Organize your data, Increase your productivity! Be more successful in life!
Visit
www.cuteassistant.com
Random Solutions
AS3 tween multiple arrows along a path
Export Access 2010 Report to CSV with Headers?
Having problems getting my VOIP setup working?
String manipulation - SLB FP Equity --> SLBP.PA
Error string in catch block?
Setting msExchMailboxSecurityDescr
iptor with VB.NET
make opera mini 5 my default browser
Word 2002/xp: Error Message: "Run-time error '4248'; 'This command is not available because no document is open.'"
How can I parse the following string, store it in a variable and then use those variables to populate some txt fields?
Infopath Form service comparison between SharePoint 2007 and SharePoint 2010