Mega Code Archive

 
Categories / Delphi / Ide Indy
 

Is Delphi running

Title: Is Delphi running Question: A short function to determine if the IDE of Delphi is running. Answer: Especially when building components it's very usefull to allow access to the component only when the Delphi IDE is running. So you can distribute your DCU-file without problems. (The Loaded function is the right place for this call). If FindWindow('TAppBuilder',nil) ShowMessage('Delphi is not running !') else ShowWindow('Delphi is running !');