Error trying to set backcolor of a textbox. 
Author Message
 Error trying to set backcolor of a textbox.

Hi, i want to change the color of a text box on runtime to:
R: 253 , G: 209, B: 119

and for that i'm currently trying to use:
TextB.BackColor = Drawing.Color.FromArgb(RGB(253, 209, 119))

but is giving me back this error:
This control does not support transparent background colors.

Any idea how can i set the control to use my colors??

Thanks
Alex.



Sat, 19 Feb 2005 07:15:31 GMT  
 Error trying to set backcolor of a textbox.
Have you tried your code without the RGB call? Maybe something like:

            TextB.BackColor = Drawing.Color.FromArgb(253, 209, 119)

=====================
Clay Burch

Syncfusion, Inc.
Visit www.syncfusion.com to download a free trial of Essential Suite


Quote:
> Hi, i want to change the color of a text box on runtime to:
> R: 253 , G: 209, B: 119

> and for that i'm currently trying to use:
> TextB.BackColor = Drawing.Color.FromArgb(RGB(253, 209, 119))

> but is giving me back this error:
> This control does not support transparent background colors.

> Any idea how can i set the control to use my colors??

> Thanks
> Alex.



Sat, 19 Feb 2005 17:12:46 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Set Textbox BackColor to Ambient BackColor

2. 2101 error when trying to set Left property on text box

3. Error trying to set relative path on linked powerpoint presentation

4. Error occurred while trying to set current row!

5. Dim x As TextBox - variable not set error

6. TextBox/BackColor problem...

7. Change textbox backcolor when in nonedit mode

8. Compare a TextBox Backcolor with a System.Drawing.Color

9. readonly or disabled textbox without dimming or backcolor change

10. Q: textbox / backcolor

11. textbox / backcolor

12. Set BackColor of a Toolbar

 

 
Powered by phpBB® Forum Software