Auto Run Program
Hi,
I am hoping someone can help point me in the right direction...
I have an application that opens with a form.
What I would like to do, is to determine is two files exist on the computer, run a procedure if they do, and then shut the application down.
Here is what I have..
frmMain is displayed. txtFile1 and txtFile2 display the filename.
Sub StartComparison is used to compare them, but it doesn't start automatically. StartComparison closes the app, but I have to run it manually on a button click for it to run
The code I am using is..
If My.Computer.FileSystem.FileExists(txtFile1.Text) And My.Computer.FileSystem.FileExists(txtFile1.Text) Then
Me.StartComparison()
End If
I have tried it in frmMain_GotFocus, Load and Activated.
Any help or suggestions would be appreciated.
Thanks
Mike
Mike
EchoVue.com
__________________
Mike
EchoVue.com
|