Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing a control - SStab

Status
Not open for further replies.

peekay

Programmer
Oct 11, 1999
324
ZA
I need to resize a tab control to fit the resized controls (flexigrid) on it. I tried to set its width and height properties but it does not seem to respond to it during runtime. Any advice on how I can do it. <br>
Thanks<br>
<p>PK Odendaal<br><a href=mailto: pko@mweb.co.za> pko@mweb.co.za</a><br><a href= > </a><br>
 
This sounds backwards. You can resize a control when its parent (container) is resized. In any case neither the SSTab or Flexgrid have a resize event handler. what you can do is put code in the resize event of the form, something like this:<br>
<br>
Private Sub Form_Resize()<br>
<br>
MSFlexGrid1.Width = Me.Width - 200<br>
MSFlexGrid1.Height = Me.Height - 500<br>
SSTab1.Width = MSFlexGrid.Width - 100<br>
SSTab1.Height = MSFlexGrid.Height - 100<br>
<br>
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top