For some reason my color Dialog Box Defaluts have changed. I think this is a
windows setting but I'm not sure. I see the same screwed up box in VS2005
and in Excel.
Question 1:
Can I reset this to the default settings programmatically for my
application? So if is a user has screwed up settings like I do the color
dialog box that shows up only shows knowncolors?
Question 2:
How can I fix this through windows? (I know this is probably the wrong
forumn, thought I would ask if you knew off the top of your head)
Thanks,
Hi Greg,
When you create a ColorDialog instance in your program, you are using a
ColorDialog instance. The options, i.e the last selected color, custom
colors in the ColorDialog instance are maintained during the lifecycle of
the program even if you close the ColorDialog.
If you restart the program, the program creates a new ColorDialog instance
and the previous options won't be maintained.
If you want to reset all the options in a ColorDialog instance to their
default values, you should call the Reset method of the ColorDialog
instance.
You have mentioned that your ColorDialog defaults have changed. Could you
tell me what the current Defaults in your ColorDialog is? The default in my
ColorDialog is that the last selected color is black and custom colors list
is empty.
Hope this helps.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Greg P - 24 Aug 2006 16:31 GMT
Linda,
This was my error, I was looking for the color dialog of old. The colors
displayed are not the same as they were in the past, but it is the current
default. I would like to possibly change which colors are displayed as
default, would you know how I could do this?
Thanks,
Greg
> Hi Greg,
>
[quoted text clipped - 40 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Linda Liu [MSFT] - 25 Aug 2006 08:54 GMT
Hi Greg,
You could set the Color property of the ColorDialog instance do this. The
following is a sample of setting the color 'Green' as the default color in
the ColorDialog.
Dim myDialog As New ColorDialog()
myDialog.Color = Color.Green
myDialog.ShowDialog()
Hope this helps.
Sincerely,
Linda Liu
Microsoft Online Community Support