
-----------------------------------
RGB255
Thu Oct 12, 2006 6:31 pm

Can't delete program
-----------------------------------
So I've made my frst .exe and I found it doesn't want to work properly as an exe and I fixed the problem but now I can't delete my old program. Can anyone tell me what's wrong?

-----------------------------------
Silent Avenger
Thu Oct 12, 2006 6:35 pm


-----------------------------------
You can't delete it because the program is technically still running even though you closed your form. So to delete your old exe you have to either restart your computer or do Ctrl + Alt + Delete and end the program that way so you can delete the exe. I suggest that next time you put the end function in your form unload sub procedure.

-----------------------------------
NikG
Fri Oct 13, 2006 2:19 am


-----------------------------------
Wow Silent Avenger... considering the little info he gave, it's as if you knew exactly what his problem was.  Can you read minds? (or in this case, other people's computers?)

-----------------------------------
ZeroPaladn
Fri Oct 13, 2006 12:26 pm


-----------------------------------
lol, fixed my problem before i even posted it! thanks Silent_Avenger.

BTW, I've just started VB6, so ill be on here more oftem from now on :wink:

-----------------------------------
Silent Avenger
Fri Oct 13, 2006 3:13 pm


-----------------------------------
lol No I can't read minds or other people's computers. My grade 9 class had the same problem and people were trying to make their final project an exe and we didn't know of the end function and therefor when we needed to fix something we couldn't overwrite the old file. I found out the next day that I could delete the exe and I found out that the program still ran after you closed the form so I asked my teacher how to prevent this and he told us about the end function.

-----------------------------------
RGB255
Fri Oct 13, 2006 4:01 pm


-----------------------------------
By the looks of it you read ZeroPaladn's mind as well lol. So how exactly do I use the end function?

-----------------------------------
Silent Avenger
Fri Oct 13, 2006 4:20 pm


-----------------------------------
Here's some example code:
Private Sub Command1_Click()
End
End Sub
So that should make sure your program is no longer running when command 1 is clicked.

-----------------------------------
RGB255
Fri Oct 13, 2006 4:33 pm


-----------------------------------
Okay thank you it worked! I'm also wondering, where is the VB mod?

-----------------------------------
Silent Avenger
Fri Oct 13, 2006 4:54 pm


-----------------------------------
Hmm I don't know where the VB mod is. I haven't seen him yet although I have looked at his account.

-----------------------------------
cool dude
Fri Oct 13, 2006 7:25 pm


-----------------------------------
Hmm I don't know where the VB mod is. I haven't seen him yet although I have looked at his account.

i don't think there really is an official VB mod but i know Tony and WTD come in the VB forums sometimes

-----------------------------------
Silent Avenger
Fri Oct 13, 2006 7:59 pm


-----------------------------------
Well here's a link to his profile and I've never seen him around. Maybe he doesn't actually exist o_O?
http://www.compsci.ca/v2/profile.php?mode=viewprofile&u=24

-----------------------------------
[Gandalf]
Sat Oct 14, 2006 9:40 am


-----------------------------------
Of course Homer_simpson exists...  It's just that he hasn't been here in over a year. ;)

-----------------------------------
Silent Avenger
Sat Oct 14, 2006 9:58 am


-----------------------------------
Ahh okay so he does exist.
