Hiding Windows Start Button

K

Kent Briggs

VB 2005 / Pocket PC. Is it possible to hide the Windows Start Button and
keep it hidden even after my program exits? I know how to hide it
temporarily using this:

Dim hwnd As IntPtr = GetForegroundWindow()
SHFullScreen(hwnd, SHFS_HIDETASKBAR)

But I don't know what handle to use to make it permanent (or at least
until a reset is performed). Note that I don't want to disable the whole
taskbar. I need other programs to keep their "Ok" button in the upper
right so they can close.

I've search through a zillion older messages here and didn't see a solution.
 
S

Sergey Bogdanov

Try to use SHFS_HIDESTARTICON instead. More constants are here:

const int SHFS_SHOWTASKBAR = 0x0001;
const int SHFS_HIDETASKBAR = 0x0002;
const int SHFS_SHOWSIPBUTTON = 0x0004;
const int SHFS_HIDESIPBUTTON = 0x0008;
const int SHFS_SHOWSTARTICON = 0x0010;
const int SHFS_HIDESTARTICON = 0x0020;
 
K

Kent Briggs

Sergey said:
Try to use SHFS_HIDESTARTICON instead. More constants are here:

Oops, I actually was using that. I just pasted the wrong section from my
code in here. In any case, the same problem persists: it only removes
the start button for the current form. I can permanently turn off the
entire taskbar using the handle returned from FindWindow("HHTaskBar")
but that handle doesn't work with hiding the start button.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top