Solved

Hide the Start Menu

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Suggested Courses
Course of the Month8 days, 7 hours left to enroll

615 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