Jump to content
Xtreme .Net Talk

setting System.Drawing.Color to a value in an integer... (c#)


Recommended Posts

Posted

Hey, I'm very new here :rolleyes: .

 

I'm a programmer who has just started using c#, I'm getting pretty good but there is one thing I'm stuck with...

 

I have an integer which is given from this peice of code " ini.ReadInt("send","CBVert",0) " If you really want to know what this does it reads a value from an ini file and returns it as a integer...

 

Now I want to use the code above and set " Color_Pick.Color " to that value, BTW this is the color select box you can create in SharpDevelop.

 

Hope someone can help me soon, thanks

Posted

errm....

 

Object Browser is your friend. :)

Use FromARGB(int)

 

That cannot be correct, it doesnt even exist in SharpDevelop! Maybe the function is different, I will look for something similar but until then is there anyone who knows?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...