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
Post a Comment