closing down an application

G

Guest

i have an application that id fired from events for an FTP server. I am
trying to rewrite from old VB6 to vb.net and have come up with a problem
thats stumped me .

old code

WriteToActivityLog("FINISHED STARTDOWN 1")
Unload.me()
WriteToActivityLog("FINISHED STARTDOWN 2 ")

in this cose only FINSIHED STARTDOWN 1 appeared, hovever i using vb.net no
matter what i do i get both meassages in the log, anyone suggest a way to
terminate the application so i still only get the first entry.. i have tried
application.exit, and exitthread but sill get both entries

ta
 
Z

zacks

i have an application that id fired from events for an FTP server. I am
trying to rewrite from old VB6 to vb.net and have come up with a problem
thats stumped me .

old code

WriteToActivityLog("FINISHED STARTDOWN 1")
Unload.me()
WriteToActivityLog("FINISHED STARTDOWN 2 ")

in this cose only FINSIHED STARTDOWN 1 appeared, hovever i using vb.net no
matter what i do i get both meassages in the log, anyone suggest a way to
terminate the application so i still only get the first entry.. i have tried
application.exit, and exitthread but sill get both entries

ta

Change Unload.me() to Me.Close().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top