Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

XP Taskbar Transparency With VB.NET??

Hows it going! :WAVE:

Anyone got any ideas on how to go about the task of setting the transparency level of the XP taskbar? The only code I came across so far is for Win2k in VB6...

Kinda off subject, but does anyone know if there is a regkey that might access these settings?

Thanks!

Jugg
[328 byte] By [Jugg] at [2007-11-11 8:36:51]
# 1 Re: XP Taskbar Transparency With VB.NET??
Been a while since I have had any time to program or post anything up here since I started my new job.

I ended up finding an answer to this some time ago & forgot to post it, thanks to the-kevster @ Neowin for this great example (http://www.neowin.net/forum/index.php?showtopic=261043&st=30) using SetLayeredWindowAttributes.

I am however wondering how I might go about using GetLayeredWindowAttributes to retrieve the current opacity value & color key, the only documentation I can find on it is in C++ & is very vague, anyone got any ideas?

Thanks!

- Jugg

------
Update
------

Declare Function GetLayeredWindowAttributes(ByVal hwnd As IntPtr, ByRef pcrKey As Integer, ByRef pbAlpha As Byte, ByRef pdwFlags As Integer) As Boolean

'... Decide where ya want to call it...

Dim key, flags As Integer

Dim alpha As Byte

If GetLayeredWindowAttributes(form.Handle, key, alpha, flags) Then
'... do stuff here ...
End If

- Thanks Mattias!!! :D
Jugg at 2007-11-11 21:47:12 >