By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,962 Members | 2,545 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,962 IT Pros & Developers. It's quick & easy.

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

P: n/a
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("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

Sep 24 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.