PC Review


Reply
Thread Tools Rate Thread

How to disable Start button by editing registry settings?

 
 
=?Utf-8?B?SGFyaQ==?=
Guest
Posts: n/a
 
      19th Dec 2004
Hi,
I have to develop a full screen application (without TitleBar and Control
Box). Using the following code, it is possible.
Me.WindowState = FormWindowState.Maximized
Me.FormBorderStyle = FormBorderStyle.None
Me.ControlBox = False
Me.Menu = Nothing
But if I wants a SIP, then I have to comment the fourth line, i.e., Me.Menu
= Nothing
Then the SIP will be there, but the Titlebar also appers. And the user can
switch over to another application by clicking the Start Button.

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
 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      20th Dec 2004
Coincidentally I had to solve the same problem today for my own application.
The solution is to do the following:

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" <(E-Mail Removed)> wrote in message
news:4697D60E-DB2C-48B1-867A-(E-Mail Removed)...
> Hi,
> I have to develop a full screen application (without TitleBar and
> Control
> Box). Using the following code, it is possible.
> Me.WindowState = FormWindowState.Maximized
> Me.FormBorderStyle = FormBorderStyle.None
> Me.ControlBox = False
> Me.Menu = Nothing
> But if I wants a SIP, then I have to comment the fourth line, i.e.,
> Me.Menu
> = Nothing
> Then the SIP will be there, but the Titlebar also appers. And the user
> can
> switch over to another application by clicking the Start Button.
>
> 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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registry editing has been disable by your administrator =?Utf-8?B?QW50aG9ueQ==?= Windows XP General 1 19th Oct 2006 04:17 AM
Skin pocket pc, disable hardware buttons, disable start button Tizio Incognito Microsoft Dot NET Compact Framework 1 3rd Feb 2005 09:13 AM
Re: how can i enable or disable the registry editing Carrie Garth Windows XP Customization 0 11th Aug 2004 10:00 PM
Re: how can i enable or disable the registry editing Ramesh [MVP] Windows XP Customization 0 11th Aug 2004 06:05 AM
Windows XP Disable CMD Registry settings Andy Johnson Windows XP Security 0 16th Oct 2003 03:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:12 PM.