I have a window that has a bunch of controls that get hidden or shown depending on different variables. All this happens before the window is actually shown with .Show()
Is there a way to make the window's height stretch or shrink depending on its contents (what's visible or not)?