Mega Code Archive

 
Categories / Delphi / System
 

Activating the Start Menu by Code

Title: Activating the Start Menu by Code Question: How can I activate Windows' Start Menu via code? Answer: Just code this event handler (in this example, a button click): {--snip--} procedure TForm1.Button1Click(Sender: TObject); begin SendMessage(Self.Handle, WM_SYSCOMMAND, SC_TASKLIST, 0); end; {--snip--}