Xp Apperance

G

Guest

hi

haw can i know that the user changed the xp color from olie to blue or
silver ?

--
Ammar S. Mitoori
IT Head QIMCO Co.
Tel : +9744831199
Mobile : +9745378400
Fax : +9744831643
 
M

Morten Wennevik

Hi,

You can use the SystemColorsChanged event for this. You will be notified
when the system colors change, but you have to determine the new colors
yourself (using SystemColors).
 
G

Guest

and this event system color belongs to which object to a form or ?
--
Ammar S. Mitoori
IT Head QIMCO Co.
Tel : +9744831199
Mobile : +9745378400
Fax : +9744831643
 
M

Morten Wennevik

and this event system color belongs to which object to a form or ?

SystemColorsChanged is a Control event, which means you can use it on the
Form, or a Button or whatever control you like, although most logically
would be to use it on the main form and have the form update the colors of
various controls if desired.

SystemColors is a framework class that contains all the colors of the
system. For instance, if you have a color scheme based on the desktop
color, use the SystemColors.Desktop property

Note that if you use SystemColors inside your application they will change
when the system changes automatically. By Default the controls use
SystemColors.
 
G

Guest

hi Morten

thanx for ur replay it was very helpful, but i wanted to ask haw can i know
if the user selected olive or blue or silver u said by using colors haw ?
--
Ammar S. Mitoori
IT Head QIMCO Co.
Tel : +9744831199
Mobile : +9745378400
Fax : +9744831643
 
M

Morten Wennevik

Sorry I haven't been able to reply earlier.

Well, Checking the red, blue, green values for a given SystemColor should
indicate which theme was selected, but it does nothing more than
indicate. The user may create their own custom settings. I would stick
to using SystemColors when coloring your form. That way, your form will
change colors automatically when the system changes. Why do you need to
know if the user is using a specific theme?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top