Computing.Net > Forums > Programming > VB code help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB code help

Reply to Message Icon

Name: junooni
Date: June 19, 2005 at 20:39:55 Pacific
OS: Windows Xp Pro Sp2
CPU/Ram: 1.7 Ghz 256 DRR
Comment:

looking for a VB code to hide the windows taskbar...and a vb code to change the background picture.....

Thank you



Sponsored Link
Ads by Google

Response Number 1
Name: Sci-Guy
Date: June 19, 2005 at 23:01:54 Pacific
Reply:

In a module:

Declare Function ShowWindow Lib "user32" _
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long

Declare Function FindWindowEx Lib "user32" _
Alias "FindWindowExA" (ByVal hWnd1 As Long, _
ByVal hWnd2 As Long, _
ByVal lpsz1 As String, _
ByVal lpsz2 As String) As Long

Sub TaskBar(blnValue As Boolean)
Dim lngHandle As Long
Dim lngStartButton As Long

lngHandle = FindWindow("Shell_TrayWnd", "")

If blnValue Then
ShowWindow lngHandle, 5
Else
ShowWindow lngHandle, 0
End If
End Sub

Public Sub HideTaskbar()
Dim A As Boolean
A = False
TaskBar (A)
End Sub

Public Sub UnHide()
Dim A As Boolean
A = True
TaskBar (A)
End Sub
------------------------
A form with 2 command buttons:

Private Sub Command1_Click()
Call HideTaskbar
End Sub

Private Sub Command2_Click()
Call UnHide
End Sub
------------------------


Please let us know if you found someone's advice to be helpful.


0
Reply to Message Icon

Related Posts

See More


Servers with HTTPS i would like to make remo...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB code help

Change default printer in VB Code www.computing.net/answers/programming/change-default-printer-in-vb-code-/6231.html

echo vbs code but errors, help www.computing.net/answers/programming/echo-vbs-code-but-errors-help/18948.html

VB Code Help www.computing.net/answers/programming/vb-code-help/9294.html