Visual CSharp .NET - Problem wyth colors (uint, hexa)

 
Vista:

Problem wyth colors (uint, hexa)

Publicado por alayle (2 intervenciones) el 19/01/2008 00:28:10
This is the problem, i have a ocx, that have one control and one uint Property, like this

Property color, acept values uint, Manually i set the value as this:

object.color = 0xFFFFFF;

for wythe color, i want to set the color using:

ocxObject.color = colorDialog1.Color; /// this is the error

and i get the error, because the ocxObject.color only acept uint

i make the convertion:

ocxObject.color = (uint)(colorDialog1.Color);

and not have error in code but, the colors not Match.

any solutions thanks
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder