Click here to Skip to main content
15,311,717 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working in a Windows mobile project. Due to some project requirement I need to Hide the form's tittle bar, but didn't find any properties of the form to do so.

Any suggestion would be appreciated.

Thanks in advance
Posted

1 solution

On the windows mobile properties for the form, you can select the Form State to be maximized. There are also dll imports you can use to hide the Start Icon and SIP Buttons.

Below is the code I use to hide the Taskbar and SIP Buttons

C#
#region SHFullscreen

#region FullScreen Imports

[DllImport("AYGShell.dll")]
private static extern Int32 SHFullScreen(IntPtr hwndRequester, UInt32 dwState);


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;

#endregion

/// <summary>
/// Call this method to set the form to full screen
/// (This makes it a little harder to go back to the desktop)
/// </summary>
private void SetFullScreen()
{
#region FullScreen

WindowState = FormWindowState.Maximized;
SHFullScreen(Handle, SHFS_HIDESIPBUTTON);
SHFullScreen(Handle, SHFS_HIDESTARTICON);
SHFullScreen(Handle, SHFS_HIDETASKBAR);

#endregion
}
#endregion




Hope this helps you :)
   
Comments
Anup_S 20-Nov-12 9:32am
   
Hi Alex
I think [DllImport("AYGShell.dll")] is not used to hide Tittle bar.
I do have the same code for SIP.
We can use the User32.dll in desktop app to hide the tittle bar but the User32 dll is not supported in ARM processor.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900