•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 455,985 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,759 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 759 | Replies: 2
![]() |
Hi my Name is Ryan and I am currently doing a college project in VB.net
I have wrote a few programs in VB.net but for this current project I really need help...
Is there anyway of ending processes (such as explorer) from a click of a button in a VB.Net program.
I need to click a button and it will close explorer etc.
By the way I am using Visual Studio 2005 Express if that helps.
Thanks
Ryan
I have wrote a few programs in VB.net but for this current project I really need help...
Is there anyway of ending processes (such as explorer) from a click of a button in a VB.Net program.
I need to click a button and it will close explorer etc.
By the way I am using Visual Studio 2005 Express if that helps.
Thanks
Ryan
Last edited by Mr Brownstone : Dec 1st, 2007 at 7:25 am.
You need to get all processes the match the name of your application in an array()
Then Kill each one
Then Kill each one
Dim myProcesses As Process() = Process.GetProcessesByName("iexplore")
Dim myProcess As Process
For Each myProcess In myProcesses
myProcess.Kill()
Next myProcess Last edited by ptaylor965 : Dec 1st, 2007 at 8:43 am. Reason: Added pre-code text
![]() |
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- sys_slow_internet_not_accessible_server_damn_slow (Viruses, Spyware and other Nasties)
- Unable to get rid of Hacktool.rootkit virus(/Trojan) (Viruses, Spyware and other Nasties)
Other Threads in the VB.NET Forum
- Previous Thread: .exe file
- Next Thread: How To alleviate two different date



Linear Mode