Returning backcolor value (dotnet)


#1

hello there!

I need to return the value of a backcolor of a label.

dotnetcontrol CR “label” width:13 height:13 pos:[0,0]
CR.backColor = Color.fromArgb 255 0 0

on CR click do
print CR.backColor

dotNetObject:System.Drawing.Color

What I expected:

255 0 0

I could do: CR.backColor.r CR.backColor.g and CR.backColor.b but isn’t there a way to have all 3 in a color?
Help!
Thanks


#2

no
if you want to show you can use tostring()
if you want to use for mxs , you must get ARGB to create your data structure