Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Color [Info].

How to assign this given color code to the textbox backcolor in vb.net

I am finding an error.
Please help me
Posted
Comments
P.Salini 17-Sep-11 2:06am    
what error you are getting

1 solution

Hi...

You can try this

textBox1.BackColor = Color.FromArgb(111, 111, 111)
 
Share this answer
 
Comments
P.Salini 17-Sep-11 2:12am    
Can you tell me How to assign
"#ACACAC" this type of code from code behind
Jagadeesh Bollabathini 28-Nov-11 21:40pm    
The color code which i am getting, its from database table which is in string.
This is my assumption

textBox1.BackColor = Color.FromArgb(ds.item("Color_Name").tostring)

Now what should i do
Jagadeesh Bollabathini 30-Dec-11 4:07am    
This is not which i want;

thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900