Solved

Hide the Start Menu

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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 …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

778 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