Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi together.

I have a little problem. I want to show the startmenu of win7 on a custom position but my code did nothing.
C#
IntPtr StartMenu = FindWindow("DV2ControlHost", null);
MoveWindow(StartMenu, x, y, width, height, true);
ShowWindowAsync(StartMenu, 1);

Could anyone help me?
Posted

1 solution

Why do you think it should show the Start Menu?

You can easily simulate Ctrl+Esc (which normally shows this menu) by using P/Invoked Windows API SendInput, see http://msdn.microsoft.com/en-us/library/ms646310(v=vs.85).aspx[^].

However I would not recommend doing anything about Start Menu at all. A good user will feel abused. The user know when and why using Start menu. What's the purpose of it? If you need to start something, this is done via System.Diagnostic.Process.Start, see http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx[^].

—SA
 
Share this answer
 
Comments
PotensGladius 20-Jun-11 12:10pm    
The point is, that I want to replace the complete taskbar/superbar with my own, which is more customizeable. And I also want to be able to show the start button e.g. on the right side of the taskbar.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900