Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2007

Tip: Looking for answers? Try searching our database.

How to disable Start menu or prevent it to open?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bz - 27 Sep 2007 22:20 GMT
Hi,

I need an app to run in kiosk mode, so user will not have access to
start menu and taskbar while the app is running

I was able to hide / show the taskbar with the following code when
app starts / exits

       [DllImport("user32.dll", EntryPoint = "FindWindowA")]
       static extern int FindWindow(string lpClassName, string
lpWindowName);

       [DllImport("user32.dll")]
       static extern int SetWindowPos(int hwnd, int hWndInsertAfter,
int x, int y, int cx, int cy, int wFlags);

       const int SWP_HIDEWINDOW = 128;
       const int SWP_SHOWWINDOW = 64;

       static public void HideTaskbar()
       {
           int intReturn = FindWindow("Shell_traywnd", "");
           SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW);
       }

       static public void ShowTaskbar()
       {
           int intReturn = FindWindow("Shell_traywnd", "");
           SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_SHOWWINDOW);
       }

But users still can access the start menu with Windows button (or
Ctrl
+Esc)
Is there any way to disable start menu too?

Thank you
Herfried K. Wagner [MVP] - 27 Sep 2007 23:10 GMT
"bz" <bzamfir@gmail.com> schrieb:
> I need an app to run in kiosk mode, so user will not have access to
> start menu and taskbar while the app is running

Maybe the tool below will help you:

Microsoft SteadyState
<URL:http://www.microsoft.com/downloads/details.aspx?familyid=d077a52d-93e9-4b02-bd95
-9d770ccdb431&displaylang=en
>

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

bz - 28 Sep 2007 08:30 GMT
Thanks, I'll check it out
However, is there any programatic way to trap the event of opening the
Startmenu and prevent it from happening?
Somehow like trapping the press of Windows key or Ctrl+ESC at system
level

Thanks

On 28 Sep, 01:10, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.at> wrote:
> "bz" <bzam...@gmail.com> schrieb:
>
[quoted text clipped - 10 lines]
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Rajneesh Narain - 28 Sep 2007 22:53 GMT
Does the following post help?
http://www.vbforums.com/archive/index.php/t-267226.html

Let me know if you are still facing any problems.
-Rajneesh

www.ComponentOne.com
bz - 01 Oct 2007 17:04 GMT
Thanks, I'll check it out
The only issue mught be that this DLL seeems to be a COM dll and want
to deply my app with ClickOnce or any other registration free
approach, and this might be a problem if I use this DLL

If you have any suggestion for NET and eventually API only...

Thanks

On 29 Sep, 00:53, Rajneesh Narain
<RajneeshNar...@discussions.microsoft.com> wrote:
> Does the following post help?http://www.vbforums.com/archive/index.php/t-267226.html
>
> Let me know if you are still facing any problems.
> -Rajneesh
>
> www.ComponentOne.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.