473,569 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide StartMenu and Taskbar in application (to accomplish Kiosk mode)

bz
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 trhe following code when
app starts / exits

[DllImport("user 32.dll", EntryPoint = "FindWindow A")]
static extern int FindWindow(stri ng lpClassName, string
lpWindowName);

[DllImport("user 32.dll")]
static extern int SetWindowPos(in t 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("She ll_traywnd", "");
SetWindowPos(in tReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW) ;
}

static public void ShowTaskbar()
{
int intReturn = FindWindow("She ll_traywnd", "");
SetWindowPos(in tReturn, 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

Sep 24 '07 #1
0 2204

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9234
by: A. Dionne | last post by:
Hi, I would like to know if it's still possible on Windows 2000 or XP to create a "Desktop Taskbar Application" (An application who attach it-self to the edges of the Desktop screen) in VB.NET or C# I know how to do it with the WIN32 API. the following link show how to do it: http://support.microsoft.com/default.aspx?scid=kb;en-us;134206...
33
3447
by: clintonG | last post by:
Your comments or referrals to documents regarding authoring for kiosk mode configuration are wanted and appreciated. How for example must authoring be conducted to display a browser maximized with no chrome? Is it even possible with ANY of the browsers? <%= Clinton Gallagher
1
11161
by: Ken Beauchesne | last post by:
Can someone tell me how to disable and hide the taskbar using C# Thanks Ken Beauchesne
0
1458
by: Honey_love | last post by:
I want to develop an internet cafe application that i want to start up in kiosk mode.how do i do this ?
2
5495
by: Honey | last post by:
I am developing a cyber cafe like application where users will not have access to any other application on the machine except they pass through my application interface.They should not be able to go to or acess the windows start menu.I will appreciate any help on this.
1
1735
by: Mateusz Rajca | last post by:
Hello, What code should I write to hide the taskbar? Mateusz
2
3920
by: Rain | last post by:
Does anyone know the code in C# or snippet or API so i can hide and show the windows taskbar? Many people have suggested using ShowWindow and FindWindow or the ABM_SETSTATE but i am having problem with the code. Cant seem to make it work. Would really appreciate any code given.. Thank you so much! I really need this one. Thank you in advance....
4
2970
by: Rekha | last post by:
Hi, System: Windows XP, Visual Studio 2005, ASP.NET 2.0, framework 2.0 When I run my web application in debug mode, I am getting the following error: "Unable to start debugging on the web server. The COM+ registry database detected a system error." If I run "repair" on the .NET framework 2.0, this issue disappears. But the issue comes...
5
2453
by: sujeet | last post by:
Dear friends, I'm facing a strange problem... My Application is in Debug mode, and the third party static library i'm using is in release mode. When i compile and try to link my application ... I get a linker error from the third party library as.
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.