The use of End without a further keyword such as Sub or Class, is not
supported and should not be used. Exit is used to terminate a block of code
for example. In this example anything after Exit Sub would not be executed.
Sub Mine()
'First Statement
Exit Sub
'Second Statement
End Sub
As others suggest You should close all your open resources and then cleanly
exit by either closeing the base form or getting to the end of your Sub Main
if thats how you started the application.
--
OHM ( Terry Burns ) * Use the following to email me *
Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Matthew" <tu*************@alltel.net> wrote in message
news:Oh*************@TK2MSFTNGP11.phx.gbl...
You should try to avoid using both of them...
Thanks for the comment. I have a context menu with a "Exit" option. Is
there an alternative that I am not aware of?
Also, assuming it is one or the other, is there a difference?
Thank,
Matthew