[VB6] Change form background color with Color Dialog Box
Tutorial:
Add "Common Dialog" to your project by navigating Project>>Components... and Components windows should show up.Tick "Microsoft Common Dialog Control 6.0" in the Components windows, then click OK.
Design your form by adding 1 command button and 1 common dialog.
Double click the Change background color button and add this code
CommonDialog1.ShowColor
Form1.BackColor = CommonDialog1.Color
'change Form1 into your form name.
And there you are, you have created a simple form that change background color using a Color Dialog Box.