Is it possible to link a process (i.e. osk.exe) opened by a program so it dies when calling program dies?
So, I start my application, it starts OSK.EXE, and if the program crashes, the on-screen keyboard is still there. Possible to link the two so that the process dies when the application dies?
rciprogrammer -2 Light Poster
Recommended Answers
Jump to PostSee if this helps.
1 TimerPublic Class Form1 Private myRunningProcesses() As Process Private myAPPthatCrashes As String = "notepad", myKeyboardApp As String = "calc", bAppFound As Boolean Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load With Timer1 .Interval = 1000 '// 1 sec. .Start() End With …
Jump to PostIt seems like you could just put your code in the ApplicationEvents.
Go To Project / Properties / Application Tab and click the View Application Events Button. That will create an ApplicationEvent.vb file. You will have a Shutdown StartUp and UnhandledException event. I put code …
Jump to PostMyprogram.exe could spawn osk.exe as well as an independent process (MyprogramMon.exe for example) that monitors Myprogram.exe. When the Myprogram.exe disappears, MyprogramMon.exe could terminate osk.exe then exit. This should work even if the main process crashes.
All 10 Replies
adam_k 239 Master Poster
codeorder 197 Nearly a Posting Virtuoso
Unhnd_Exception commented: "Just Because" :) -2
adam_k 239 Master Poster
rciprogrammer -2 Light Poster

Unhnd_Exception
rciprogrammer -2 Light Poster

Unhnd_Exception
codeorder commented: Also "Just Because". :D -2
rciprogrammer -2 Light Poster
rciprogrammer -2 Light Poster
Reverend Jim 5,276 Hi, I'm Jim, one of DaniWeb's moderators. Moderator 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.