By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,881 Members | 1,393 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,881 IT Pros & Developers. It's quick & easy.

after making the color to a label how we can access the label color

P: 1
i like to access the label color
means i give the color of a label at the runtime of the form and later i want gain the color name or rgb value of it
Aug 25 '15 #1
Share this Question
Share on Google+
1 Reply

P: 300
This will change the color:
Expand|Select|Wrap|Line Numbers
  1. Label1.ForeColor = Color.Red
This will show the color in a Message Box:
Expand|Select|Wrap|Line Numbers
  1. MsgBox(Label1.ForeColor.ToString())
Sep 9 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.