开发者

Fixed width of collapse panel in C#, winform?

In winform application, i am using multiple collapse panels and each one contains dynamic controls added.

But the problem is, the width of the collapse panels changes dymanically (width reduces on collapsed mode and increases while expanded) but i want fixed width on both mode.

Even i handled collapsablePanel1_PanelStateChanged event and set constant width, but no use.

    private void collapsablePanel1_PanelStateChanged(object sender, EventArgs e)
    {
      this.c开发者_运维问答ollapsablePanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
      this.Width = collapsablePanel1.Width;
    }

How do i get fixed width collapse panels during expaned/collapes state?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜