title: How to develop a form in windows forms similar to the "outlook 2007 send/receive progress" dialog?
body: <p>I want to develop a dialog using windows forms in C# that resembles the "outlook 2007 send/receive progress"  in behavior.  I developed most of the functionality but am having trouble when I need to implement the "Details" button function.</p>
  
  <p>Essentially, the dialog has a progress bar and tabbed panel below the progress bar. on the right of the progress bar, there is a button which shows "Details". Essentially, when you click on this button, it either shows or hides the tab control (which contains status messages) AND re-sizes the form to fit the remaining controls (i.e. shrink or grow)</p>
  
  <p>I have used a basic form, default layout manager, on which I have a progress bar and a button etc just like the outlook one. when the user clicks on the "Details" button, I make the tab control visible property false. I expected the form to resize but it doesn't. If I use the autosize and autosizemode it works but with those properties set I can't anchor the tab control.</p>
  
  <p>what I need is:
  - For the form to shrink when the tab control is invisible or hidden
  - But when it is shown, and form is resized, I want the tab control to grow with the form.</p>
  
  <p>Is there a way to achieve this? I tried flowlayout and tablelayout but they don't seem to help...I also tried to remove the tabcontrol from the form's Controls collection and then call PerformLayout () but none of that works.</p>
  
  <p>any pointers?
  thanks
  sb</p>