My question is, how we can disable the Titlebar(Start button) and enable the
SIP simultaneously?
I have disabled the clock by editing the registry using:
HKEY_LOCAL_MACHINE\Software\Microsoft\Clock\
Value: AppState
Data: 11 to enable, 30 to disable
Is there any similar way to disable the Start Button?
Thanks in Advance,
Regards,
Hari
1) Form properties:
maximized, no control box, no maximize box, no minimize box.
2) in Activate event handler call:
public static void SetFullScreen(Form frm, bool bFullScreen)
{
IntPtr hWnd = GetHandle(frm);
SHFullScreen(hWnd, bFullScreen? (SHFS_SHOWSIPBUTTON|SHFS_HIDESTARTICON)
: (SHFS_SHOWSTARTICON|SHFS_SHOWTASKBAR));
}
private const int SHFS_SHOWTASKBAR = 1;
private const int SHFS_HIDETASKBAR = 2;
private const int SHFS_SHOWSIPBUTTON = 4;
private const int SHFS_HIDESIPBUTTON = 8;
private const int SHFS_SHOWSTARTICON = 0x10;
private const int SHFS_HIDESTARTICON = 0x20;
[DllImport("aygshell.dll")]
private static extern int SHFullScreen(IntPtr hWnd, int dwState);
--
Alex Feinman
---
Visit http://www.opennetcf.org
"Hari" <Ha...@discussions.microsoft.com> wrote in message
news:4697D60E-DB2C-48B1...@microsoft.com...