Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how do it do that?
thanks :D regards
Posted
Comments
Sergey Alexandrovich Kryukov 21-Feb-12 18:00pm    
Add a tag: Forms. You are really interested to have this tag; please do it.
--SA
Sergey Alexandrovich Kryukov 21-Feb-12 18:01pm    
What's the problem? What have you done so far?
--SA

Don't you think it looks like your copy of MSDN is broken?

Just looks at both classes:
http://msdn.microsoft.com/en-us/library/system.windows.forms.colordialog.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.aspx[^].

First have a property System.Windows.Forms.ColorDialog.Color, another one — the property System.Windows.Forms.Form.BackColor. It looks nothing can prevent it to read one and assign the color value to another one.

Moreover, you can do it for all currently open forms as you have a property System.Windows.Forms.Application.OpenForms:
http://msdn.microsoft.com/en-us/library/system.windows.forms.application.openforms.aspx[^].

Did you ever try to count how many types and type members come with .NET libraries? Think about it. If you cannot learn how to find what you need using Google, Bing or MSDN by yourself and are going to ask a question on each one, you won't have time to complete even a single project.

—SA
 
Share this answer
 
In addition to Solution 1, if you would like to get an example please have a look,
Windows Forms Tutorial[^]

Hope it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900