Solved

Hide the Start Menu

Posted on 2000-06-09
3
195 Views
Last Modified: 2010-05-02
I am making a program in which I need to hide the startmenu (I have a form that loads as big as it can on the screen, but in order to make it full-screen I have to hide the start menu from being seen). I know there's an API for doing this, but I lost it on my computer when I got a virus that formatted my HD. What's the code for hiding it then showing it again (there can't be any trace of the start menu being there)?
0
Comment
Question by:ENZINNA0123
  • 2
3 Comments
 

Accepted Solution

by:
JDunck earned 100 total points
ID: 2920757
This works in Win9x.  Not sure about NT or 2K

 - ralinon

Public Const SW_HIDE = 0
Public Const SW_SHOW = 5

Public Const gcstrTaskBarClassName = "Shell_TrayWnd"

Public Sub gsHideTaskbar(blnHide As Boolean)
   '--- Hides Start button
   
   Dim hWndTaskbar As Long
   Dim intShowControl As Integer
   
   hWndTaskbar = FindWindow(gcstrTaskBarClassName, "")
   
   If hWndTaskbar <> 0 Then
      If blnHide Then
       'Hide the taskbar
       ShowWindow hWndTaskbar, SW_HIDE
      Else
       'Show the start button
       ShowWindow hWndTaskbar, SW_SHOW
      End If
   End If
   
End Sub
0
 

Expert Comment

by:JDunck
ID: 2920766
Oops.. API Declare was left out...


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

Author Comment

by:ENZINNA0123
ID: 2920909
Answer accepted
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 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

26 Experts available now in Live!

Get 1:1 Help Now