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
Solved

Hide the Start Menu

Posted on 2000-06-09
3
198 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

792 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