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 (
)
<00>
<01>
<02>
<03>
<04>
<05>
<06>
<07>
<08>
<09>
<10>
<11>
<12>
<13>
<14>
<15>
<16>
<17>
<18>
<19>
<20>
<21>
<22>
<23>
Link to this page:
//www.vb-net.com/Samantha/Resizable.htm
<SITEMAP> <MVC> <ASP> <NET> <DATA> <KIOSK> <FLEX> <SQL> <NOTES> <LINUX> <MONO> <FREEWARE> <DOCS> <ENG> <CHAT ME> <ABOUT ME> < THANKS ME> |