(NET) NET (2019)

3.2. My typical VB.NET desktop application. Make form resizable.

To make form resizable there many control in Windows forms, Splitter, Panel and other, but main control is TableLayoutPanel, usually I make form exactly on it.



In this form I have two special button to control size of TableLayoutPanel - Shoter and Taller.



  50:      Private Sub MakeSubformTaller_Click(sender As Object, e As EventArgs) Handles MakeSubformTaller.Click
  51:          TableLayoutPanel1.RowStyles()(1).Height += 10.0F
  52:          TableLayoutPanel1.RowStyles()(2).Height -= 10.0F
  53:      End Sub
  54:   
  55:      Private Sub MakeSubformShorter_Click(sender As Object, e As EventArgs) Handles MakeSubformShorter.Click
  56:          TableLayoutPanel1.RowStyles()(1).Height -= 10.0F
  57:          TableLayoutPanel1.RowStyles()(2).Height += 10.0F
  58:      End Sub


Comments ( )
Link to this page: //www.vb-net.com/Samantha/Resizable.htm
< THANKS ME>