コード例 #1
0
 public MyTabPage(MyTabControl tabControl, string header, Control content)
 {
     this.TabControl = tabControl ?? throw new ArgumentNullException();
     this.Header     = header ?? throw new ArgumentNullException();
     this.Content    = content ?? throw new ArgumentNullException();
     InitializeComponent();
 }
コード例 #2
0
ファイル: MyTabNavItem.cs プロジェクト: HDRorz/WinFormsDemo
 public MyTabNavItem(MyTabControl tabControl, MyTabPage tabPage)
 {
     this.TabControl = tabControl ?? throw new ArgumentNullException();
     this.TabPage    = tabPage ?? throw new ArgumentNullException();
     InitializeComponent();
     this.Header = TabPage.Header;
     this.label1.Refresh();
     this.flowLayoutPanel.Refresh();
 }
コード例 #3
0
        private void Init()
        {
            MyTabControl         = new MyTabControl.MyTabControl();
            MyTabControl.Dock    = DockStyle.Fill;
            MyTabControl.Enabled = true;
            MyTabControl.Name    = "MyTabControl";
            this.tableLayoutPanel1.SuspendLayout();
            this.tableLayoutPanel1.Controls.Add(MyTabControl, 0, 0);
            this.tableLayoutPanel1.ResumeLayout(false);
            MyTabControl.Show();

            MyTabControl.Click      += MyTabControl_Click;
            MyTabControl.MouseClick += MyTabControl_MouseClick;
        }
コード例 #4
0
ファイル: MyTabNav.cs プロジェクト: HDRorz/WinFormsDemo
 public MyTabNav(MyTabControl tabControl)
 {
     this.TabControl = tabControl ?? throw new ArgumentNullException();
     InitializeComponent();
 }