Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2009, 09:18 PM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 5,060
Default How to know if the application is running from Delphi IDE?

How to know if the application is running from Delphi IDE?
__________________
Regards,
Abdulaziz Jasser

Last edited by Jasser; 09-02-2009 at 11:42 PM.
Reply With Quote
  #2  
Old 09-02-2009, 01:05 AM
Glenn1234 Glenn1234 is offline
Senior Member
 
Join Date: Aug 2009
Posts: 131
Default

http://www.delphipages.com/forum/showthread.php?t=87205
Reply With Quote
  #3  
Old 09-02-2009, 09:37 PM
nester261 nester261 is offline
Moderator
 
Join Date: Jan 2004
Location: UK
Posts: 618
Default

Hi Jasser,

You could try:

Code:
Function RunIDEChk: boolean;
Begin
   Result:=FindWindow('TAppBuilder', nil) > 0;
End;

procedure TForm1.IDEChckBtnClick(Sender: TObject);
begin
  if RunIDEChk = True then
  ShowMessage('Running in the IDE!');
end;
__________________
"Where there's a will, there's always a way."

-- The Hon Robert Nester Marley O.M. - aka Bob Marley!
Reply With Quote
  #4  
Old 09-02-2009, 10:37 PM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 5,060
Default

Glenn1234,
nester261

Thanks All...
__________________
Regards,
Abdulaziz Jasser
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 11:03 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.