zoukankan      html  css  js  c++  java
  • C# TabPage隐藏问题

    TabPage没有Visible属性,所以只能通过设置将其与父控件(tabcontrol)的关联性去除就好了,如下面代码:

    this.tclMain.Controls["tpgSize"].Parent = null;
    this.tclMain.Controls["tpgColor"].Parent = null;

    上述代码将原本是tabcontrol(tclMain)中的两个TabPag(tpgSize, tpgColor)e去掉了

    this.tclMain.Controls.Add(tpgSize);

    上述代码又将原本tabpage(tpgSize)添加回来

  • 相关阅读:
    Got05
    Git07
    Git09
    Git11
    Git10
    Git13
    Git12
    Git14
    Listview点击跳转页面
    《三个和尚》观后感
  • 原文地址:https://www.cnblogs.com/rogerroddick/p/2992685.html
Copyright © 2011-2022 走看看