Click here to Skip to main content
15,911,317 members
Home / Discussions / C#
   

C#

 
GeneralRe: UDP Send function sends duplicate data Pin
Chase Davis11-Feb-08 12:30
Chase Davis11-Feb-08 12:30 
GeneralRe: UDP Send function sends duplicate data Pin
led mike12-Feb-08 9:30
led mike12-Feb-08 9:30 
Generalan application for showing shared files using c# and .net Pin
addemy11-Feb-08 7:24
addemy11-Feb-08 7:24 
GeneralRe: an application for showing shared files using c# and .net Pin
led mike11-Feb-08 7:51
led mike11-Feb-08 7:51 
GeneralRe: an application for showing shared files using c# and .net Pin
addemy11-Feb-08 7:59
addemy11-Feb-08 7:59 
GeneralRe: an application for showing shared files using c# and .net [modified] Pin
led mike11-Feb-08 8:13
led mike11-Feb-08 8:13 
Generalsystem.drawing.color [modified] Pin
s3rro11-Feb-08 7:11
s3rro11-Feb-08 7:11 
GeneralRe: system.drawing.color Pin
led mike11-Feb-08 8:07
led mike11-Feb-08 8:07 
s3rro wrote:
I want to change the color of the TEXTs on my form from an xml document. i know i need to use system.drawing.color somewhere.

So you want to create a Color object from a hexstring representation of the color, yes?

Please NOTE this is without error checking and it is NOT a design.
string scolor = "#6633aa";
int red = Convert.ToInt16(scolor.Substring(1, 2),16);
int green = Convert.ToInt16(scolor.Substring(3, 2),16);
int blue = Convert.ToInt16(scolor.Substring(5, 2),16);
label1.ForeColor = Color.FromArgb(red, green, blue);



led mike

GeneralRe: system.drawing.color Pin
Insincere Dave11-Feb-08 8:34
Insincere Dave11-Feb-08 8:34 
GeneralRe: system.drawing.color Pin
led mike11-Feb-08 8:38
led mike11-Feb-08 8:38 
GeneralRe: system.drawing.color Pin
s3rro11-Feb-08 8:53
s3rro11-Feb-08 8:53 
GeneralRe: system.drawing.color Pin
Pete O'Hanlon11-Feb-08 10:16
mvePete O'Hanlon11-Feb-08 10:16 
QuestionRequest is not available in this context Pin
Ryno Burger11-Feb-08 6:18
Ryno Burger11-Feb-08 6:18 
GeneralRe: Request is not available in this context Pin
led mike11-Feb-08 6:22
led mike11-Feb-08 6:22 
GeneralRe: Request is not available in this context Pin
Ryno Burger11-Feb-08 6:27
Ryno Burger11-Feb-08 6:27 
GeneralRe: Request is not available in this context Pin
led mike11-Feb-08 6:47
led mike11-Feb-08 6:47 
GeneralRe: Request is not available in this context Pin
Not Active11-Feb-08 6:24
mentorNot Active11-Feb-08 6:24 
GeneralRe: Request is not available in this context Pin
Steve Westbrook11-Feb-08 6:38
Steve Westbrook11-Feb-08 6:38 
GeneralRe: Request is not available in this context Pin
leppie11-Feb-08 8:03
leppie11-Feb-08 8:03 
GeneralRe: Request is not available in this context Pin
led mike11-Feb-08 8:12
led mike11-Feb-08 8:12 
GeneralRe: Request is not available in this context Pin
Steve Westbrook11-Feb-08 13:52
Steve Westbrook11-Feb-08 13:52 
GeneralRe: Request is not available in this context Pin
led mike12-Feb-08 5:25
led mike12-Feb-08 5:25 
GeneralRe: Request is not available in this context Pin
Steve Westbrook12-Feb-08 6:14
Steve Westbrook12-Feb-08 6:14 
GeneralRe: Request is not available in this context Pin
led mike12-Feb-08 7:47
led mike12-Feb-08 7:47 
GeneralRe: Request is not available in this context Pin
Steve Westbrook12-Feb-08 16:07
Steve Westbrook12-Feb-08 16:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.