StausBar

How to disable win95 statusbar while running vb5 application with stausbar
mathivAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
yowkeeConnect With a Mentor Commented:
mathiv,

  If you get syntax error at that line, it should be the problem of pasting code. Try remove the space in front of "Dim ...", then it should work.

  I resummit my comment as answer.
0
 
lortegaCommented:
win95 statusbar = Task Bar??
0
 
yowkeeCommented:
mathiv,

  Since you said "win95 statusbar", I assume it is taskbar.
  You could use following example to disable or hide taskbar.

---
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Const SW_HIDE = 0

Private Sub Form_Load()
    Dim hTaskbar As Long
   
    hTaskbar = FindWindow("Shell_TrayWnd", vbNullString)
    If hTaskbar <> 0 Then ' Found it
        ' Disable it (Pass True in 2nd parameter to enable)
        Call EnableWindow(hTaskbar, False)
        ' Or Hide it
        ' Call ShowWindow(hTaskbar, SW_HIDE)
    End If
End Sub
----

Regards.
0
 
mathivAuthor Commented:
My question is about windows taskbar. When I try to execute the above answer given by  yowkee I am getting syntax error at the statement "Dim hTaskbar as long".
0
 
mathivAuthor Commented:
I tried the answer given by Yowkee in different computer it is working so good. This is what I need. Thankyou for the answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.