Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Hide Start Menu on Vista

Reply
Thread Tools Display Modes

Hide Start Menu on Vista

 
 
carson
Guest
Posts: n/a

 
      08-07-2008

I only want to hide start menu of Vista. here is my code

// get taskbar windo
IntPtr taskBarWnd = FindWindow("Shell_TrayWnd", null)

//get the start button windo
IntPtr startWnd = FindWindow("Button", null)
if (startWnd != IntPtr.Zero

ShowWindow(startWnd, show ? SW_SHOW : SW_HIDE)
UpdateWindow(startWnd)


But it does not work, and I have checked the start button handle i
correct. I do not know why ShowWindow does not work

Any suggestions

--
carson
 
Reply With Quote
 
 
 
 
carson
Guest
Posts: n/a

 
      08-07-2008

no one know it

--
carson
 
Reply With Quote
 
Gary S. Terhune
Guest
Posts: n/a

 
      08-07-2008
You're asking in a user-oriented group not a programmer's group, which
latter is where you should be asking. So, no, you're not likely to get an
answer. Besides, it's only been five and a half hours since your first post,
spanning mostly pre-dawn hours in the US on a weekday. If you can't apply
decent logic to that fact and assume that it will probably be at least
several hours before your post gets looked at by most knowledgeable people
here, and you can't tell the difference between a user and a programmer
group, then no wonder you're having so much trouble with programming.

--
Gary S. Terhune
MS-MVP Shell/User
http://grystmill.com

"carson" <> wrote in message
news:...
>
> I only want to hide start menu of Vista. here is my code.
>
> // get taskbar window
> IntPtr taskBarWnd = FindWindow("Shell_TrayWnd", null);
>
> //get the start button window
> IntPtr startWnd = FindWindow("Button", null);
> if (startWnd != IntPtr.Zero)
> {
> ShowWindow(startWnd, show ? SW_SHOW : SW_HIDE);
> UpdateWindow(startWnd);
> }
>
> But it does not work, and I have checked the start button handle is
> correct. I do not know why ShowWindow does not work.
>
> Any suggestions?
>
>
> --
> carson



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
How to hide the start menu lock button? karl Windows Vista Administration 3 01-03-2008 03:32 PM
cant hide traditional menu bar, organize/layout/menu bar has no effect, no details pane option Michael Brown Windows Vista General Discussion 0 12-18-2007 05:57 PM
Hide/disable Start Menu from preschooler BaileyPark Windows Vista Administration 1 08-18-2007 04:34 PM
Default Start Menu option missing from Taskbar & Start Menu properties screen lmoiola@gmail.com Windows Vista General Discussion 6 03-03-2007 03:37 AM
Hide Explorer Menu bar Michael Tissington Windows Vista General Discussion 12 11-29-2006 04:15 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59