c# - How Can i Close Child Form when Click on Parent Form? -
i having trouble in windows form application. have 2 forms:
1st main / parent form
2nd sub / child form (menu)
problem:
i want close 2nd form (which opens on top of 1st form) when click on 1st form.
you can register main form "on focus" event (this link basic tutorial shows how register events in vb: http://www.homeandlearn.co.uk/net/nets10p1.html)
when event occurs have check if second form open (save reference opened form can that) , close it.
if add code able more specific...
Comments
Post a Comment