FlowlayoutPanel内的ComboBox [英] ComboBox inside FlowlayoutPanel

查看:52
本文介绍了FlowlayoutPanel内的ComboBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


您好,

Hi,

推荐答案

Hi Vinothini,

Hi Vinothini,

我在我的项目中测试了将 FlowlayoutPanel
FontSize 更改为更大,真的可以重现这个问题。但是,它只是出现在设计器界面中,当你运行项目时,控件不会重叠。

I tested in my project with changing the FontSize of the FlowlayoutPanel to more bigger and really can reproduce this issue. However, it is just appear in the designer interface, when you run the project, the controls will not overlap.

或者你可以在增加FontSize之后添加以下代码:

Or maybe you can add the following code after increasing the FontSize:

    for(int i = 0; i < flowLayoutPanel1.Controls.Count-1; i++)
    {
        this.flowLayoutPanel1.PerformLayout();
    } 

问候,

Stanly


这篇关于FlowlayoutPanel内的ComboBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆