[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

StausBar

Posted on 1998-06-16
5
Medium Priority
?
157 Views
Last Modified: 2010-05-03
How to disable win95 statusbar while running vb5 application with stausbar
0
Comment
Question by:mathiv
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:lortega
ID: 1463440
win95 statusbar = Task Bar??
0
 
LVL 4

Expert Comment

by:yowkee
ID: 1463441
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
 

Author Comment

by:mathiv
ID: 1463442
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
 

Author Comment

by:mathiv
ID: 1463443
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
 
LVL 4

Accepted Solution

by:
yowkee earned 100 total points
ID: 1463444
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question