H
Henk van Winkoop
Hello,
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
prc.StartInfo.FileName="Help.chm";
//open file
prc.Start();
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,
regards,
Henk
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
prc.StartInfo.FileName="Help.chm";
//open file
prc.Start();
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,
regards,
Henk