PC Review


Reply
Thread Tools Rate Thread

close another app

 
 
cfyam
Guest
Posts: n/a
 
      2nd Oct 2003
How can I close another runuing app in my app?


 
Reply With Quote
 
 
 
 
Maarten Struys
Guest
Posts: n/a
 
      2nd Oct 2003
P/Invoke to get the window handle of the application to close (e.g. using
FindWindow). Than P/Invoke PostMessage to send that window a WM_CLOSE
message.

Thinking about it, it might also be possible to P/Invoke DestroyWindow,
although I have never tried that myself.

--
Regards,

Maarten Struys
PTS Software bv

"cfyam" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How can I close another runuing app in my app?
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2007 Disable Close and Close All on Tabbed Documents MumHeb Windows Vista 0 6th May 2010 05:36 PM
error in running workbook.close() func. after close excel from win Kayıhan Microsoft C# .NET 0 29th Mar 2009 12:49 AM
Clear Checkbox field on close of form or close of report =?Utf-8?B?QnJvb2s=?= Microsoft Access Form Coding 2 14th Jan 2006 09:31 PM
Excel shoud not close all active books when clicking close button =?Utf-8?B?dGVjaG5vbWlrZQ==?= Microsoft Excel Misc 0 10th Jun 2005 05:35 PM
Close all programs / Shut Down windows does not auto close outlook =?Utf-8?B?TUtlcw==?= Microsoft Word Document Management 2 22nd Aug 2004 11:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:35 PM.