[ACXFAQ021]
Visual Studio .NET: How do I set your ActiveX color properties?  I'm getting "System.Drawing.Color" cannot be converted to "System.UInt32" errors!


The Visual Studio .NET IDE requires that you convert the standard System Colors of .NET to a 32-bit Integer when passing data to our color properties.  You will need to use the Convert and ColorTranslator functions of .NET to complete the conversion.

.NET Example
AxiLCDMatrixX1.PlaceText("Testing", 1, 1, Convert.ToUInt32(ColorTranslator.ToOle(Color.Salmon)))
 

Copyright ©1998-2007 Iocomp Software Incorporated. Iocomp and the Iocomp Logo are registered trademarks of Iocomp Software Inc. All other trademarks are registered by their respective owners.