i would like to know what is the correct way to create a fullscreen view of a tabpage control. This page has other controls, and that controls has various events that are subscribed. I was trying creating a new fullscreen form and copy all controls of the tabs to that form, but with this approach i need to resubscribe every control to the corresponding handler. If i only add the references the subscription remains but when the fullscreen form is close also the referenced copied controls are lost.
Share
This can be elegantly done by Winforms’ support for reparenting a control. You could move it to a temporary form that’s displayed full-screen. All the normal event handlers still work as usual. Here’s a sample implementation, it works for any control:
Sample usage: