inserting a dialog box

aod43254

New member
Joined
Mar 3, 2008
Messages
1
Programming Experience
Beginner
i need some help with inserting a dialog box on vb2005. im practicing for a competition at school and one of the projects says "On the form, place a command button. When the command button is clicked, invoke a common dialog box to change the background color of the form."

i know have the button but i cant find a way to do the rest for it could someone help
 
Look in toolbox to find the ColorDialog component. There is documentation for it too if you need it, just write "colordialog" in help. There is even code samples and stuff.
Look through the documentation for the form class and you see it has a backcolor property, this is the one you have to set to set the background color.
 
Back
Top