c# - Capture open user controls in Windows form application -
how capture open user control in c# windows form application in run time.i need capture user control , dispose it.
assuming "open user control" mean form, go with
foreach (form form in application.openforms) { if (form.text == "xyz")//your form { //... } }
Comments
Post a Comment