472,799 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,799 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 4253
"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
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.