is it possible in winforms, vb.net, to define the specific custom colors that will appear in the custom color boxes in colordialog?
is it possible in winforms, vb.net, to define the specific custom colors that will
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In short, yes. MSDN covers it here. The problem is that it isn’t done via
Color– you need to handle the value as BGR sets – i.e. each integer is composed of the colors as 00BBGGRR, so you left-shift blue by 16, green by 8, and use red “as is”.My VB sucks, but in C#, to add purple:
reflector assures me that this is similar to: