tpvgames Posted June 19, 2005 Posted June 19, 2005 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 Quote
IngisKahn Posted June 20, 2005 Posted June 20, 2005 Object Browser is your friend. :) Use FromARGB(int) Quote "Who is John Galt?"
tpvgames Posted June 20, 2005 Author Posted June 20, 2005 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? Quote
tpvgames Posted June 20, 2005 Author Posted June 20, 2005 I have just noticed that its VB.NET not c# :s Silly little me.... Anyways whats the VB.NET equivilant? Quote
penfold69 Posted June 20, 2005 Posted June 20, 2005 Color_Pick.Color = Color.FromARGB(ini.ReadInt("send","CBVert",0)) Quote
*Experts* mutant Posted June 20, 2005 *Experts* Posted June 20, 2005 It might not exist if you don't reference the System.Drawing assembly. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.