Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

How to prevent Start Menu from appearing when desktop is being hide ?

When i hide the desktop and the taskbar, the start menu will appear when i double click on the desktop. So, how could i prevent the start menu from being displayed when i double click the desktop. A sample working code would be appreciate.Thanks
0
masterofpuppets
Asked:
masterofpuppets
  • 6
  • 3
  • 2
  • +1
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
How did you hide the desktop????
0
 
mcriderCommented:
Did you try creating a maximized form without a titlebar?  When you do this, what the user is actually clicking on is the form... Not the desktop.


Cheers!®©
0
 
masterofpuppetsAuthor Commented:
I hiding the desktop using ShowWindow API with a command SW_HIDE.I'm creating a small form at the center of the screen with all the desktop items and the taskbar is being unvisible. The problem is, if the user clicking on the blank desktop, the start menu will appear. I don't want this to happen.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
VBGuruCommented:
checkout using the API EnableWindow
0
 
VBGuruCommented:
use WS_DISABLED and diable the desktop. So that no further mouse actions will be recognised.

Cheers.
0
 
masterofpuppetsAuthor Commented:
Thank's VBGuru.I'm trying your suggestion.
0
 
masterofpuppetsAuthor Commented:
I can use EnableWindow to disable the mouse click on the desktop if the desktop is visible.But, when i'm start hiding it, the start menu will still appear.
0
 
mcriderCommented:
Check out the following microsoft KB articles:

HOWTO: Cover the Taskbar with a Window in Visual Basic
http://support.microsoft.com/support/kb/articles/Q197/5/85.ASP?LNG=ENG&SA=MSDN&FR=0 

HOWTO: Determine if Windows 95/98 Taskbar Is Visible/Hidden
http://support.microsoft.com/support/kb/articles/Q143/1/17.asp?LNG=ENG&SA=MSDN&FR=0 


Cheers!®©
0
 
masterofpuppetsAuthor Commented:
Thanks mcrider...the articles is great, but that is not what i'm looking for.
0
 
mcriderCommented:
What I was getting at is that if you cover the desktop and taskbar with a blank form, and then show your forms over it, the user will not be able to click on the desktop...


Cheers!®©
0
 
masterofpuppetsAuthor Commented:
I got your point mcrider. I don't want to cover the entire desktop with a blank form. What my App should do is hide the desktop and the taskbar, so the user can't access the start menu.It is something similar to the Windows NT
lock workstation screen.
0
 
masterofpuppetsAuthor Commented:
Since this question has been posted for quite a long time, i'll accept comment posted by VBGuru.Anyway, thanks a lot to VBGuru and mcrider for helping me.

Cheers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now