How to do that(Syntax)?
Something like this.
rbtMyButton.BackColor = #63338b
I am using .Net Framework 1.1.
Thanks.
W SmithFirst, 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" <WSMith1974@.hotmail.com> wrote in message
news:uo6O3QzcEHA.1652@.TK2MSFTNGP09.phx.gbl...
> 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,
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" <dwier@.nospamASPNet101.com> wrote in message
news:uc7NNczcEHA.1656@.TK2MSFTNGP09.phx.gbl...
> 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" <WSMith1974@.hotmail.com> wrote in message
> news:uo6O3QzcEHA.1652@.TK2MSFTNGP09.phx.gbl...
> > 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
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" <WSMith1974@.hotmail.com> wrote in message
news:%23aArLozcEHA.3944@.tk2msftngp13.phx.gbl...
> 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" <dwier@.nospamASPNet101.com> wrote in message
> news:uc7NNczcEHA.1656@.TK2MSFTNGP09.phx.gbl...
> > 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" <WSMith1974@.hotmail.com> wrote in message
> > news:uo6O3QzcEHA.1652@.TK2MSFTNGP09.phx.gbl...
> > > 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
> >
0 comments:
Post a Comment