Hi guys!
I have a program that reads a chm file through this function:
Now, I would like to delete it when the program closes.
So far I have this:
However, the above fails, because apparently, the Help.ShowHelp class uses a read/write attribute (I cannot have a read only for some reason. If I do, the help window does not open).
Is there any way of deleting this file ones the program terminates?
Thanks guys!
I have a program that reads a chm file through this function:
System.Windows.Forms.Help.ShowHelp(Me, tempfolder & "/Help.chm", HelpNavigator.AssociateIndex)
Now, I would like to delete it when the program closes.
So far I have this:
If System.IO.File.Exists(tempfolder & "/preview.html") Then SetAttr(tempfolder & "/preview.html", FileAttribute.Normal) Kill(tempfolder & "/preview.html") End If
However, the above fails, because apparently, the Help.ShowHelp class uses a read/write attribute (I cannot have a read only for some reason. If I do, the help window does not open).
Is there any way of deleting this file ones the program terminates?
Thanks guys!
This post has been edited by aommaster: 07 July 2009 - 05:17 AM

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.




Back to top









