Search code examples
c#.netwinformsuser-controlssystem.drawing

Where does a user-control go when the visibility of it is set to false?


Curiosity is kicking out again. I've been using the user control .Visible and .Hide() method for a long time. So where does a user-control go when the visibility of it is set to false?


Solution

  • It doesn't go anywhere - it stays in memory. It's just that its not visible. Being visible really means that it has to paint its area when requested and it can receive focus and user actions.