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