473,322 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Xp Apperance

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
Oct 4 '06 #1
5 1644
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).
On Wed, 04 Oct 2006 13:00:02 +0200, Pure Heart
<Pu*******@discussions.microsoft.comwrote:
hi

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


--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 4 '06 #2
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
"Morten Wennevik" wrote:
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).
On Wed, 04 Oct 2006 13:00:02 +0200, Pure Heart
<Pu*******@discussions.microsoft.comwrote:
hi

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

--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 4 '06 #3
On Wed, 04 Oct 2006 13:34:01 +0200, Pure Heart
<Pu*******@discussions.microsoft.comwrote:
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.
--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 4 '06 #4
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
"Morten Wennevik" wrote:
On Wed, 04 Oct 2006 13:34:01 +0200, Pure Heart
<Pu*******@discussions.microsoft.comwrote:
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.
--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 4 '06 #5
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?
On Wed, 04 Oct 2006 18:06:01 +0200, Pure Heart
<Pu*******@discussions.microsoft.comwrote:
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 ?


--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 9 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Damien | last post by:
I wish to be able to display a series of PHP generated messages one after the other with a 2 second delay between them all. I figured javascript would be the best way to achieve this. The number of...
1
by: VINAY | last post by:
Dear All, The subject line could be bit confusing. So let me explain in details, please have patience. I have developed an ActiveX Control(Combo Box Control) in VB6 for a touch screen...
5
by: joshuaphillips | last post by:
Hi All, I am creating a Kiosk frontend that has tons and tons of radio buttons. (402 to be exact.) Anyhow, because this is a touch screen application, I have added an image to each radio button...
1
by: matthias s. | last post by:
Hi there, Is there a way to safely (meaning, it yields identical results in most browsers) customize the appearance of standard WebControls such as a TextBox or a DropDownList? I know that I...
2
by: Tomek | last post by:
Hi, Please help me with this. I'm exporting data to excel file and I want to customize its apperance (i.e. bold columns name, auto size colums width, freeze some columns). Is it possible? I'm...
3
by: John J. Hughes II | last post by:
Why are the buttons, control tab pages, and a few other things different on the GUI interface then when my application is run? For example in the GUI the button have slightly rounded corner and...
5
by: endacoz | last post by:
I have a database of people and items associated with them. I am working on a form that has as listbox of all the names of the poeple, select the person you want and then click the button and it...
3
by: sarellaravi | last post by:
hi to everyone, just help me out to do this. On my page i have a dropdownlist control,which contain 80 items. when i select the dropdownlist.i am able to veiw 35 items of the list at single look....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.