Show only my application in win95/98 desktop.

Hi all,
I have created an application in VB. Now my client wants to start my application once the win95/98 is loaded.
Also, How can I disable or hide the Desktop in order to prevent the users to change any setting of the computer to corrupt the application. What I mean is not letting users to see or use Start Menu, Control Panel, My Computer, those shortcut menu or icons.) MeanWhile, I need to go to those setting if I need to.(for example, there is a bug in my application :P)
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This Microsoft document will walk you through how to hide the taskbar... In your program, you can put in a "password protected" subroutine that will unhide the task bar so an "admin" person can have access to the start bar...

HOWTO: Cover the Taskbar with a Window in Visual Basic


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I forgot to mention that you also need to do this...

HOWTO: Create a Form That Always Stays on Top

I don't know what it is about EE, but the link I gave you to "HOWTO: Create a Form That Always stays on top" will not work if you click on it... you have to type it in manually.

One other thing... While this solution stops the mouse from accessing the startbar, If your keyboard has the WIN95 Key, the start bar will come up...

I'm not sure of a way to disable that key...
I also have an API that will hide the start bar... Unfortunately, that d@mn WIN95 key still works...

Add this to a module, then call HideTaskbar to hide and UnhideTaskbar to unhide.. WARNING, You MUST call UnhideTaskbar before terminating your program... Otherwise, you have to reboot to see your taskbar again...



      Option Explicit

      Dim handleW1 As Long

      Private Declare Function FindWindowA Lib "user32" _
      (ByVal lpClassName As String, _
      ByVal lpWindowName As String) As Long

      Private Declare Function SetWindowPos Lib "user32" _
      (ByVal handleW1 As Long, _
      ByVal handleW1InsertWhere As Long, ByVal w As Long, _
      ByVal x As Long, ByVal y As Long, ByVal z As Long, _
      ByVal wFlags As Long) As Long

      Const TOGGLE_HIDEWINDOW = &H80

      Function HideTaskbar()
         handleW1 = FindWindowA("Shell_traywnd", "")
         Call SetWindowPos(handleW1, 0, 0, 0, _
         0, 0, TOGGLE_HIDEWINDOW)
      End Function

      Function UnhideTaskbar()
         Call SetWindowPos(handleW1, 0, 0, 0, _
      End Function
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.