[VB6] Whats the best way to kill a program? - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: [VB6] Whats the best way to kill a program? (/showthread.php?tid=11517) |
[VB6] Whats the best way to kill a program? - `P R O D I G Y™ - 08-25-2010 I find it quite often that my programs always end up in my proccesses even after they're closed :\, what am I doing wrong? RE: [VB6] Whats the best way to kill a program? - wchar_t - 08-25-2010 (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 RE: [VB6] Whats the best way to kill a program? - 【 ¶ÑÇƦ€Ƿ¦ßŁΞ 】 - 08-25-2010 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 ! RE: [VB6] Whats the best way to kill a program? - `P R O D I G Y™ - 08-25-2010 I mean in code, not manually... Jeez RE: [VB6] Whats the best way to kill a program? - Fragma - 08-25-2010 Code: Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("process name") Haven't tested this but it should work. (You will have to convert to VB6) RE: [VB6] Whats the best way to kill a program? - `P R O D I G Y™ - 08-25-2010 Ah, okay. I thin Unload Me, works aswell. Thank you! |