PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Blocking the timer system access.
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Blocking the timer system access.
![]() |
Blocking the timer system access. |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi, I'm a Brazilian. Sorry for my Language.
I need blocking the control panel access , in my application. Or block the Key "Windows" for the keyboard. My System go run in a Qtek ,and the user cannot modify the timer system. Anybody help-me? In Vb.net or C#. Thank's Cézar |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi,
If you want to block the Key "Windows". Try to use the WndProc to trap the key press. Check this : http://samples.gotdotnet.com/quicks...sagewindow.aspx BR Fabien Decret Windows Embedded Consultant ADENEO (ADESET) http://www.adeneo.adetelgroup.com/ cezarantoniosouza@yahoo.com.br a écrit : > Hi, I'm a Brazilian. Sorry for my Language. > > I need blocking the control panel access , in my application. > Or block the Key "Windows" for the keyboard. > My System go run in a Qtek ,and the user cannot modify the timer > system. > > Anybody help-me? > In Vb.net or C#. > > > Thank's > > Cézar |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Hello,
With the following code you could hide/show the taskbar (and with that also the taskmanager): private const int SW_HIDE = 0x00; private const int SW_SHOW = 0x0001; [DllImport("coredll.dll", CharSet = CharSet.Auto)] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("coredll.dll", CharSet = CharSet.Auto)] private static extern bool ShowWindow(IntPtr hwnd, int nCmdShow); [DllImport("coredll.dll", CharSet = CharSet.Auto)] private static extern bool EnableWindow(IntPtr hwnd, bool enabled); private static void ShowTaskbar() { IntPtr h = FindWindow("HHTaskBar", ""); ShowWindow(h, SW_SHOW); EnableWindow(h, true); } private static void HideTaskbar() { IntPtr h = FindWindow("HHTaskBar", ""); ShowWindow(h, SW_HIDE); EnableWindow(h, false); } Regards, Sabine |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

