【问题标题】:My Dll Forms Still Show Boarders Even Though i Set It To None即使我将其设置为无,我的 Dll 表单仍然显示寄宿生
【发布时间】:2018-02-22 10:14:39
【问题描述】:

当我设计我的 dll 时,这就是我设计它的样子,Visual Design of one of my dll forms

但是当我将构建的 dll 引用到一个 deperate 程序并尝试运行它时。它看起来像这样。 Dll Form Now has boarders

有什么想法吗?

【问题讨论】:

    标签: c# winforms dll


    【解决方案1】:

    好吧,您在System.Windows.Forms.Form 中拥有名为FormBorderStyle 的财产。默认是相当大的。你可以在这里设置任何你想要的。 此外,您可以在该表单的构造函数中以编程方式设置边框:

    this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-27
      • 1970-01-01
      • 2011-12-18
      • 2023-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多