Is there an instruction that I can add to a button click to exit a program
Thong_Ispector
2
Practically a Master Poster
Recommended Answers
Jump to Posttry using this instead.
it will unload all forms and then end all processes.dim f as Form for each f in forms unload F next end
Jump to PostThank you for this. This did not however answer my original question, how to close a program. It does close a vb application that is running but I wanted to know how to close an exe file. I'll get back to you when I figure out how to do that. …
Jump to PostLets say you wanted to close Notepad
Dim myProcess As Process = New Process myProcess.StartInfo.FileName = "notepad.exe" Case Else ' do whatever in this else myProcess.Kill()
Jump to PostHi Dani,
I'm sorry if I Violated your rules. My message was only intended to help somebody who asked a question. That's all.
TDuck :-)
All 15 Replies
switty
0
Newbie Poster
jwshepherd
0
Junior Poster
Thong_Ispector
2
Practically a Master Poster
IconKana
6
Newbie Poster
marketingmaniac
0
Light Poster
IconKana
6
Newbie Poster
IconKana
6
Newbie Poster
Hellsy
0
Newbie Poster
IconKana
6
Newbie Poster
AndreRet
526
Senior Poster
AndreRet
526
Senior Poster
IconKana
6
Newbie Poster
AndreRet
commented:
Thanks for the help to others.
+6
AndreRet
526
Senior Poster
IconKana
6
Newbie Poster
BitBlt
452
Practically a Master Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.