开发者

Splitcontainer, Make a fixed panel

开发者 https://www.devze.com 2022-12-22 19:31 出处:网络
I have a splitcontainer with horizontal orientation. I want a fixed height for panel2 only during form resize, and let splitter resize panel2

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 that the panel resize

Private Sub Form1_ResizeBegin(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles Me.ResizeBegin 
    spil = SplitContainer1.Height - SplitContainer1.SplitterDist开发者_JAVA百科ance
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?


Have you tried setting SplitContainer1.FixedPanel = Panel1 (and removing both events) ?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号