Hierzu benötigen wir eine Funktion aus der AYGShell DLL.
Mit der Funktion SHFullScreen kann man solche Dinge erledigen.
(siehe http://msdn.microsoft.com/en-us/library/aa453694.aspx)
[DllImport("AYGShell.dll")]
static extern Int32 SHFullScreen(IntPtr hwndRequester, UInt32 dwState);
Diese man kann man mit den jeweiligen Parametern aufrufen.
public const UInt32 SHFS_SHOWTASKBAR = 0x0001; public const UInt32 SHFS_HIDETASKBAR = 0x0002; public const UInt32 SHFS_SHOWSIPBUTTON = 0x0004; public const UInt32 SHFS_HIDESIPBUTTON = 0x0008; public const UInt32 SHFS_SHOWSTARTICON = 0x0010; public const UInt32 SHFS_HIDESTARTICON = 0x0020;
Beispiel:
public void hideSIPButton(Form form)
{
SHFullScreen(form.handle, SHFS_HIDESIPBUTTON);
}
{
SHFullScreen(form.handle, SHFS_HIDESIPBUTTON);
}

0 Kommentare:
Kommentar veröffentlichen