简体   繁体   中英

Close a child form and open another form on click of a button from user control in C#.net?

IDE: Microsoft Visual Studio 2010 Platform: C#.net

Hi, I am trying to close a child form and open a new child form which is loaded in an MDI parent form on click of a button in User control which is loaded in the MDI parent... Any suggestion please?

Your use control should expose nthe buttons Click event, whiuch the containing form can subscribe to. Then when the containing form receives this event it can go off and do what it wants to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM