G
Guest
Hi!
I have two panels on a form. Panel1 displays the list view(no user-inpout required) and Panel2 displays a detailview(user can change the data). Panel1 has two menu items for editing or creating new records. Panel doesn't have any menuitems. Now I would like to hide/remove the SIP icon when Panel1 is visible and show the icon when Panel2 is visible.
I am using:
[DllImport("aygshell.dll")]
static extern uint SHFullScreen(IntPtr hwndRequester, uint dwState);
[DllImport("coredll.dll")]
static extern IntPtr FindWindow(string LPClassName, string LPWindowName);
and
SHFullScreen(hWnd, SHFS_HIDESIPBUTTON);
SHFullScreen(hWnd, SHFS_SHOWSIPBUTTON);
I am calling the function to hide the SIP in Form_Load but when the app runs, the icon flashes and then appears on the form. I have tried to call this function in other events with no success.
When I call these functions from a menu item click event, the icon is hidden/shown.
Can anyone tell me what I am missing or should be doing?
Thanks for your time!
Regards,
Kumar
I have two panels on a form. Panel1 displays the list view(no user-inpout required) and Panel2 displays a detailview(user can change the data). Panel1 has two menu items for editing or creating new records. Panel doesn't have any menuitems. Now I would like to hide/remove the SIP icon when Panel1 is visible and show the icon when Panel2 is visible.
I am using:
[DllImport("aygshell.dll")]
static extern uint SHFullScreen(IntPtr hwndRequester, uint dwState);
[DllImport("coredll.dll")]
static extern IntPtr FindWindow(string LPClassName, string LPWindowName);
and
SHFullScreen(hWnd, SHFS_HIDESIPBUTTON);
SHFullScreen(hWnd, SHFS_SHOWSIPBUTTON);
I am calling the function to hide the SIP in Form_Load but when the app runs, the icon flashes and then appears on the form. I have tried to call this function in other events with no success.
When I call these functions from a menu item click event, the icon is hidden/shown.
Can anyone tell me what I am missing or should be doing?
Thanks for your time!
Regards,
Kumar