|
-
Mar 28th, 2003, 08:56 AM
#1
Thread Starter
Member
Setting label backcolor in colde
Can anyone tell me why this bit of code does not change the background color of the label?
Label1.BackColor = Color.FromArgb(QBColor(Val(sender.tag)))
This line is executed from within an event procedure that is called when a button is clicked (it's actually a 4x4 matrix of buttons, each tagged with a number 0 to 15). I have viewed the result of the .FromArgb method in the debug window, and it returns the correct value for the corresponding QBColor, but for some reason it does not change the background color of the label. Am I missing something here (maybe using the Argb method incorrectly), is there another way of doing this, or ????????
--Steve
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|