Code:
[DllImport("AYGShell.dll")]
static extern Int32 SHFullScreen(IntPtr hwndRequester, UInt32 dwState);
public const UInt32 SHFS_SHOWSIPBUTTON = 0x0004;
public const UInt32 SHFS_HIDESIPBUTTON = 0x0008;
public Form1()
{
InitializeComponent();
}
private void OnPaint(object sender, PaintEventArgs e)
{
HideSipButton();
}
private void HideSipButton()
{
UInt32 dwState = SHFS_HIDESIPBUTTON;//: SHFS_SHOWSIPBUTTON;
SHFullScreen(this.Handle, dwState);
}
HI, above code works fine in the first launch of a form in windowsmobile, it hides the sip button of a form in windows mobile, but if i click on the menu bar sip-button reappears.. i dont no how to eliminate the sip button completely.. please help me how to fix this..
i ment i dont want sip button at all for a form in windowsmobile.. i am using .net CF
Thanks