![]() |
|
|
|
#1 |
|
I want to set the back color of radio button to some numeric value.
How to do that(Syntax)? Something like this. rbtMyButton.BackColor = #63338b I am using .Net Framework 1.1. Thanks. W Smith WilsonSmith |
|
|
|
|
#2 |
|
Posts: n/a
|
First, Import System.Drawing
All the methods of System.Drawing.Color, at first, seem to bypass the use of Hex codes, like normally used in HTML. However, there is a method using one argument that you can use: Color.FromARGB If you use only one Int32 as an argument, you can preface your Hex code with '&H78' and it will work perfectly - - like this: myVar=Color.FromARGB(&H78CEEFFF) David Wier MCP, MVP ASP.NET, ASPInsider http://aspnet101.com http://aspexpress.com "WilsonSmith" <> wrote in message news:... > I want to set the back color of radio button to some numeric value. > How to do that(Syntax)? > > Something like this. > rbtMyButton.BackColor = #63338b > I am using .Net Framework 1.1. > > Thanks. > > W Smith > > David Wier |
|
|
|
#3 |
|
Posts: n/a
|
David,
Here is my color for table TABLE borderColor="#68228b" Could not achieve the same color by implementing the below code. rbtMyButton.BackColor = Color.FromARGB(&H68228b) How to do that? W Smith "David Wier" <> wrote in message news:... > First, Import System.Drawing > > All the methods of System.Drawing.Color, at first, seem to bypass the use of > Hex codes, like normally used in HTML. However, there is a method using one > argument that you can use: > Color.FromARGB > > If you use only one Int32 as an argument, you can preface your Hex code with > '&H78' and it will work perfectly - - like this: > > myVar=Color.FromARGB(&H78CEEFFF) > > David Wier > MCP, MVP ASP.NET, ASPInsider > http://aspnet101.com > http://aspexpress.com > > > "WilsonSmith" <> wrote in message > news:... > > I want to set the back color of radio button to some numeric value. > > How to do that(Syntax)? > > > > Something like this. > > rbtMyButton.BackColor = #63338b > > I am using .Net Framework 1.1. > > > > Thanks. > > > > W Smith > > > > > > WilsonSmith |
|
|
|
#4 |
|
Posts: n/a
|
Make it:
rbtMyButton.BackColor = Color.FromARGB(&H7868228b) (also - don't forget to import System.Drawing) David Wier MCP, MVP ASP.NET, ASPInsider http://aspnet101.com http://aspexpress.com "WilsonSmith" <> wrote in message news:%... > David, > Here is my color for table > > TABLE borderColor="#68228b" > > Could not achieve the same color by implementing the below code. > rbtMyButton.BackColor = Color.FromARGB(&H68228b) > > How to do that? > > W Smith > > > "David Wier" <> wrote in message > news:... > > First, Import System.Drawing > > > > All the methods of System.Drawing.Color, at first, seem to bypass the use > of > > Hex codes, like normally used in HTML. However, there is a method using > one > > argument that you can use: > > Color.FromARGB > > > > If you use only one Int32 as an argument, you can preface your Hex code > with > > '&H78' and it will work perfectly - - like this: > > > > myVar=Color.FromARGB(&H78CEEFFF) > > > > David Wier > > MCP, MVP ASP.NET, ASPInsider > > http://aspnet101.com > > http://aspexpress.com > > > > > > "WilsonSmith" <> wrote in message > > news:... > > > I want to set the back color of radio button to some numeric value. > > > How to do that(Syntax)? > > > > > > Something like this. > > > rbtMyButton.BackColor = #63338b > > > I am using .Net Framework 1.1. > > > > > > Thanks. > > > > > > W Smith > > > > > > > > > > > > David Wier |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| setting up etherchannel!! | vishamr2000 | Hardware | 0 | 07-17-2007 01:53 PM |
| Setting up a home theatre PC | Admin@MovieManager.ca | DVD Video | 3 | 06-10-2007 05:05 PM |
| DVD shrink Compression setting question | Emerald Green | DVD Video | 5 | 10-02-2005 10:39 PM |
| When setting a TV as a Second display device will i get componet as a connection option ??? | Kate Jackson | DVD Video | 5 | 06-22-2005 01:33 PM |
| Need Help Setting Up Domain Server | maxz1 | A+ Certification | 0 | 11-26-2003 08:33 PM |