Solved

StausBar

Posted on 1998-06-16
5
128 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 50 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now