Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VB6] Whats the best way to kill a program?
#1
I find it quite often that my programs always end up in my proccesses even after they're closed :\, what am I doing wrong?
Reply
#2
(08-25-2010, 03:00 AM)`P R O D I G Y™ Wrote: I find it quite often that my programs always end up in my proccesses even after they're closed :\, what am I doing wrong?

make sure the program is set to exit process on form1 close

Big Grin
Reply
#3
Start task manager , select the application you want to end process , than right click and choose go to process after selecting the specific process right click again , a menu will popup , select end process OR end process tree to end the process..
There will be no alteration in other running applications !
Mad
Reply
#4
I mean in code, not manually... Jeez
Reply
#5
Code:
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("process name")

For Each p As Process In pProcess
p.Kill()
Next

Haven't tested this but it should work. (You will have to convert to VB6)
Reply
#6
Ah, okay. I thin Unload Me, works aswell. Thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] - Convert Excel formula to VB6 Code Carb0n F1ber 15 6,795 05-18-2015, 11:46 PM
Last Post: longwest
  vb6.0 SSTab control disappeared DanB 0 1,292 12-29-2012, 10:24 AM
Last Post: DanB
  [HELP][VB6] Comparing md5/file size? Cloud203 5 2,397 02-04-2012, 02:47 PM
Last Post: Denny Crane
  VB6 | PickYourShow0.1 BETA BreShiE 29 7,323 01-11-2012, 02:44 AM
Last Post: BreShiE
  [VB6] Shopping List BreShiE 3 1,547 12-30-2011, 07:51 PM
Last Post: BreShiE

Forum Jump:


Users browsing this thread: 5 Guest(s)