Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 08-13-2006, 07:46 PM   #1 (permalink)
 
True Techie

Join Date: Jan 2005

Posts: 240

bigbmxdave

Default silly c# book

my c# book doesnt explain things too well

it lets me use this drawing function:

g.FillEllipse(Brushes.Blue, new RectangleF(e.X - 24, e.Y - 24, 48, 48));

what I would like to do is change "Blue" to whatever value I have in a variable which was chosen by the user. the book I have doesnt give me the code for it,

any help would be appreciated, thxs
__________________
Cure for Boredom
bigbmxdave is offline  
Old 08-17-2006, 06:51 PM   #2 (permalink)
 
Newb Techie

Join Date: Aug 2006

Posts: 13

non_profit

Default

depending on what option your client is given for deciding a color, your probably going to want to do something like create a list box or popup that gives your user all the options you want to give them for colors, then when they select a color run a case statement that checks what color was selected and for each color have a case for it and put your fillelipse code with that brush color there- make sense?
[/code]
non_profit is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On