By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,620 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

How to know if an exe file opened is cancelled?

P: 26
Hi guys. I used System.Diagostics.Process.Start to open/execute an executable file (.exe) in C# (using VS 2003). I have "cancel" and "ok" buttons in that exe file. How would I know if the "cancel" button in that .exe file has been clicked? Thanks. :D
Jan 13 '09 #1
Share this Question
Share on Google+
3 Replies

P: 62
You want to monitor which button is clicked form another app?
Just want to clarify what you want to do..
1st App opens or executes another Executable (2nd App) which has OK and Cancel buttons..
now when you click the cancel button in 2nd app, you want to know from 1st app which button is clicked?

Is this what you are trying to do?

Jan 13 '09 #2

P: 26
yes, it possible?
Jan 13 '09 #3

Expert 5K+
P: 7,872
You could try doing something with the return value? That's a bit of funny business, but it would really only effect old dos things.

In that .exe with the ok/cancel, have the main() function return an int.
(0 is traditionaly used as "success")
Jan 13 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.