473,395 Members | 1,516 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,395 software developers and data experts.

System Active Title Bar Color1 and Color2

Is it possible to find out what the Active Title Bar's color 1 and color2 is for the system
If you go to the display properties and click advanced, andother window pops up allowing you to change the Active Title Bar color1 and color2, which creates the gradient effect

What to know if it was possible to find out the 2 colors in vb.net
Nov 20 '05 #1
5 4281
"Jeff" <an*******@discussions.microsoft.com> schrieb
Is it possible to find out what the Active Title Bar's color 1 and
color2 is for the system? If you go to the display properties and
click advanced, andother window pops up allowing you to change the
Active Title Bar color1 and color2, which creates the gradient
effect.

What to know if it was possible to find out the 2 colors in
vb.net?


http://msdn.microsoft.com/library/en...etsyscolor.asp

(COLOR_ACTIVECAPTION and COLOR_GRADIENTACTIVECAPTION)

System.Drawing.SystemColors returns other system colors, unfortunately not
the above ones.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
"Armin Zingler" <az*******@freenet.de> schrieb
http://msdn.microsoft.com/library/en...etsyscolor.asp

(COLOR_ACTIVECAPTION and COLOR_GRADIENTACTIVECAPTION)

If you own VS.NET (or at least a license *g*), you find the constant values
here:
Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include

......
COLOR_ACTIVECAPTION = 2
COLOR_GRADIENTACTIVECAPTION = 27
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
How do I get that code to run for vb.net

Thank
Jef

----- Armin Zingler wrote: ----

"Armin Zingler" <az*******@freenet.de> schrie
http://msdn.microsoft.com/library/en...getsyscolor.as
(COLOR_ACTIVECAPTION and COLOR_GRADIENTACTIVECAPTION

If you own VS.NET (or at least a license *g*), you find the constant value
here
Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Includ

.....
COLOR_ACTIVECAPTION =
COLOR_GRADIENTACTIVECAPTION = 2
--
Armi

How to quote and why
http://www.plig.net/nnq/nquote.htm
http://www.netmeister.org/news/learn2quote.htm
Nov 20 '05 #4
"Jeff" <an*******@discussions.microsoft.com> schrieb
How do I get that code to run for vb.net?


Which code? Call the GetSyscolor function. It's described in the supplied
link.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5
"Jeff" <an*******@discussions.microsoft.com> schrieb
The supplied link is in c# and where do I find the function
GetSysColor?


Private COLOR_ACTIVECAPTION As Integer = 2
Private COLOR_GRADIENTACTIVECAPTION As Integer = 27

Public Declare Function GetSysColor Lib "user32" _
Alias "GetSysColor" (ByVal nIndex As Integer) As Integer

'....

Dim rgb As Integer
Dim col2 As Color

rgb = GetSysColor(COLOR_GRADIENTACTIVECAPTION)
col2 = Color.FromArgb( _
&HFF, rgb And &HFF, (rgb \ &H100) And &HFF, _
(rgb \ &H10000) And &HFF _
)
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
Nov 20 '05 #6

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

Similar topics

36
by: Peter Brause | last post by:
Hello, my stylesheet shows different colors for visited, active and hovered links. It works fine in IE 6, but in Opera 7 the color for the active link (red background) is never shown. How to...
7
by: McKirahan | last post by:
What is "active content"? My ASP page just returns HTML.... I have a page with an .htm extension that has a form whose action is an ASP page which generates a report after updating a database...
2
by: Phil Stanton | last post by:
When designing a new form or report, the Default ForeColor is often something like -2147483640 which is the colour of Windows text (possibly black) and the default backColor is -2147483643...
2
by: Ben | last post by:
I have several pages written in aspx, but sometime the aspx page return the following error. And it hapeen, the whole web application gives this error, that means all the aspx files get affected....
2
by: SamSpade | last post by:
I have a MDI application Each child window contains one control docked fill (not all forms have the same control). Sometimes, I'm not sure what the criterion is for making it happen, if I...
3
by: Paweł S. Piotrowski | last post by:
Hello I'm writing some small application in C# just for my purpose. I want to change active window title. This feature was i.e. in foo_tbar.dll extension for foobar (music player) - when track...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
0
by: bcanter | last post by:
I found a file on the web that will allow you to enumerate groups but it was an .hta and the top level admins won't allow this. I need to give managers access to the groups so that when a new user is...
2
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post by:
Hi, I am wondering why the .NET Framework is quite different from Win32 API when it comes to displaying system modal message boxes. Consider the four following types of system modal message...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.