Handling an exception in Visual Basic?
I have the following happening:
Timer1 is set to at every interval, to use code:
richtextbox.loadfile (file path)
so the rich text box in my program constantly refreshes to say what the file in the path contains, however, for some periods the folder the file is in becomes unavailable for a short moment (due to another program using the folder) and of course this causes the Unhandeled Exception "File Not Found" error to appear.
How do I code the program so when this exception occurs it'll do something for example: textbox1.text = "text here"
or
form2.show
Using VB 2005