Splitcontainer, Make a fixed panel

Posted by Marcx on Stack Overflow See other posts from Stack Overflow or by Marcx
Published on 2010-03-08T22:05:26Z Indexed on 2010/03/08 22:06 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

I have a splitcontainer with horizontal orientation.

I want a fixed height for panel2 only during form resize, and let splitter resize panel2

Now I'm doing it this way, but I'm not satisfy because user notice the panel resize.

Private Sub Form1_ResizeBegin(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles Me.ResizeBegin 
    spil = SplitContainer1.Height - SplitContainer1.SplitterDistance
End Sub

Private Sub Form1_ResizeEnd(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles Me.ResizeEnd
    SplitContainer1.SplitterDistance = SplitContainer1.Height - spil
End Sub

Any ideas?

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about .NET