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

How to detect closing a file opened by a Process?

P: n/a

I would like to open a 'Help.chm' file on a button click.
I got the advice to use a Process object.

//create a process
Process prc = new Process;
//add filename to the process
//open file

this all works fine.

If I click the button twice I get an exception error that the file is
allready open.
Can I somehow set the openened file to modal?
Or can my application somehow been signalled when the file is closed
by the user?

I tried a Process control on my form but it's 'Exited' event is not
executed on file closing.

All tips welcome,


Apr 25 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
I would like to open a 'Help.chm' file on a button click.
You could use the HtmlHelp API to open the window with your CHM file. It
will reuse the existing window if you invoke it the second time.

(H) Serge
Apr 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.