1. Home
  2. Computing & Technology
  3. Delphi Programming

Activate Windows Start button from code

By , About.com Guide

Here's how to invoke a click on a Windows Start button from code:

~~~~~~~~~~~~~~~~~~~~~~~~~
procedure TForm1.Button1Click(Sender: TObject) ;
begin
   SendMessage(Form1.handle,
               WM_SYSCOMMAND,
               SC_TASKLIST,0) ;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~

Delphi tips navigator:
» Get text from the control at pos x,y on screen
« Are we connected to the Internet?

Explore Delphi Programming
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. 2000 Delphi Tips
  7. Activate Windows Start button from code

©2010 About.com, a part of The New York Times Company.

All rights reserved.