I have a form with a ToolStrip at the top and a TabControl just below it. The TabControl fills the rest of the form and has it's tabs on the right, off of the form. The click event of the ToolStripButton s selects the correct tab. Each tab page has a TableLayoutPane l that is fill-docked and contains the controls. As part of the tool strip button click event, I would like to change the height of the form to remove any empty space at the bottom of the form. Right now, I just have the height for each page hard coded, but I would like to iterate thru the current TableLayoutPane l.Controls, find the bottom-most control, and use that control's Bottom property to set the form height.
I can do all of that except setting the height correctly, because the bottom-most control location is relative to the TableLayout panel. How can I translate this into a form location? TIA --Sam
I can do all of that except setting the height correctly, because the bottom-most control location is relative to the TableLayout panel. How can I translate this into a form location? TIA --Sam
Comment