P pcbtmr Member Licensed User Longtime User Sep 30, 2011 #1 I have 10 labels of different colors (constants). Upon selecting a label (click) I need to know what the label color or RGB color of the label is. Thanks.
I have 10 labels of different colors (constants). Upon selecting a label (click) I need to know what the label color or RGB color of the label is. Thanks.
klaus Expert Licensed User Longtime User Sep 30, 2011 #2 The Color property id Write only. So, you need to memorize the colors somewhere else. Best regards. Upvote 0
P pcbtmr Member Licensed User Longtime User Sep 30, 2011 #3 Thanks, I was afraid of that. Any way of having the label.tag hold it but somehow set it in the designer? Upvote 0
Thanks, I was afraid of that. Any way of having the label.tag hold it but somehow set it in the designer?
klaus Expert Licensed User Longtime User Sep 30, 2011 #4 Yes, you can do it in the designer, but you must enter the integer value. Example for blue: Designer: Label1.Tag -16776961 Or you can do it by code Label1.Tag = Colors.Blue Best regards. Upvote 0
Yes, you can do it in the designer, but you must enter the integer value. Example for blue: Designer: Label1.Tag -16776961 Or you can do it by code Label1.Tag = Colors.Blue Best regards.