c# - How do I kill a process, given the title of a form hosted in that process? -


how kill process, given title of form hosted in process?

how kill program runs system retired. while had title of it?

i believe trying close form. if can use application.openforms property , form based on title like:

var form = application.openforms                       .cast<form>()                       .firstordefault(r=> r.text == "yourtitle"); if(form != null)     form.close(); 

you should consider there multiple forms same title.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -