Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 01, 2012 08:25 AM by chandrashekar
Member
510 Points
985 Posts
Mar 01, 2012 06:41 AM|LINK
how to change background colour of text box using id in vb.net
vb.net
Dim ColorName1 As String = StrArr(0) #ctl00_InnerContent_colorpickerField1.BackColor = System.Drawing.ColorTranslator.FromHtml(ColorName1)
but its not working
Participant
1741 Points
354 Posts
Mar 01, 2012 08:23 AM|LINK
HI,
Try this..
TextBox2.backcolor = Color.WhiteHope it was useful
Star
10258 Points
1760 Posts
Mar 01, 2012 08:25 AM|LINK
Hi
What is your text box id that you have created in the design page. Try the below: Here the id of your text box is "txtBox". Can you post your text box markup?
txtBox.BackColor = System.Drawing.ColorTranslator.FromHtml(ColorName1)
Smadhu
Member
510 Points
985 Posts
how to change background colour of text box using id in vb.net
Mar 01, 2012 06:41 AM|LINK
how to change background colour of text box using id in vb.net
vb.net
Dim ColorName1 As String = StrArr(0)
#ctl00_InnerContent_colorpickerField1.BackColor = System.Drawing.ColorTranslator.FromHtml(ColorName1)
but its not working
cool_cupid_j...
Participant
1741 Points
354 Posts
Re: how to change background colour of text box using id in vb.net
Mar 01, 2012 08:23 AM|LINK
HI,
Try this..
Robert
chandrasheka...
Star
10258 Points
1760 Posts
Re: how to change background colour of text box using id in vb.net
Mar 01, 2012 08:25 AM|LINK
Hi
What is your text box id that you have created in the design page. Try the below: Here the id of your text box is "txtBox". Can you post your text box markup?
Please try the answer for the post and finally Don't forget to click “Mark as Answer” on the post that helped you.