|
-
September 24th, 2001, 01:52 AM
#1
Color
Hi Gurus,
I won't to display the Color Common Dialog.But When u load it it automatically focus to the Black Color.Can I change this to the color which I wont.
CommonDialog1.Color = txtPreview.ForeColor
I did as above but no use.
Dinesh Asanka
-
September 24th, 2001, 04:49 AM
#2
Re: Color
CommonDialog1.Flags = cdlCCRGBInit 'this says you want to change default color
CommonDialog1.Color = vbGreen 'here set the color you want as default
CommonDialog1.ShowColor 'show the dialog
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
September 24th, 2001, 07:34 AM
#3
Re: Color
Try:CommonDialog1.Color = vbRed 'or any color you want
CommonDialog1.Flags = cdlCCRGBInit
CommonDialog1.ShowColor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|