Solved

Hide the Start Menu

Posted on 2000-06-09
3
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

733 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