当前位置: 首页>>代码示例>>C#>>正文


C# TabPage.Activate方法代码示例

本文整理汇总了C#中TabPage.Activate方法的典型用法代码示例。如果您正苦于以下问题:C# TabPage.Activate方法的具体用法?C# TabPage.Activate怎么用?C# TabPage.Activate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TabPage的用法示例。


在下文中一共展示了TabPage.Activate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeComponent


//.........这里部分代码省略.........
            this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panel3.Controls.Add(this.panel4);
            this.panel3.Controls.Add(this.buttonReload);
            this.panel3.Controls.Add(this.labelSharedFiles);
            this.panel3.Controls.Add(this.sharedListView);
            this.panel3.Location = new System.Drawing.Point(8, 0);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(760, 288);
            this.panel3.TabIndex = 3;
            //
            // panel4
            //
            this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                        | System.Windows.Forms.AnchorStyles.Left)
                                                        | System.Windows.Forms.AnchorStyles.Right)));
            this.panel4.BackColor = System.Drawing.Color.White;
            this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panel4.Controls.Add(this.tabControlDetails);
            this.panel4.Location = new System.Drawing.Point(408, 32);
            this.panel4.Name = "panel4";
            this.panel4.Size = new System.Drawing.Size(344, 248);
            this.panel4.TabIndex = 15;
            //
            // tabControlDetails
            //
            this.tabControlDetails.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(241)), ((System.Byte)(250)));
            this.tabControlDetails.Dock = System.Windows.Forms.DockStyle.Fill;
            //this.tabControlDetails.HideTabsMode = Crownwood.Magic.Controls.TabControl.HideTabsModes.ShowAlways;
            this.tabControlDetails.Location = new System.Drawing.Point(0, 0);
            this.tabControlDetails.Name = "tabControlDetails";
            //this.tabControlDetails.PositionTop = true;
            //this.tabControlDetails.SelectedIndex = 0;
            //this.tabControlDetails.SelectedTab = this.tabPageDetails;
            tabPageDetails.Activate();
            this.tabControlDetails.Size = new System.Drawing.Size(342, 246);
            this.tabControlDetails.TabIndex = 0;

            this.tabPageDetails.ShowCloseButton(false);
            this.tabPagStats.ShowCloseButton(false);
            this.tabControlDetails.AddRange(new TabPage[] {
            tabPageDetails,
            tabPagStats
            });
            //this.tabControlDetails.SelectionChanged += new System.EventHandler(this.tabControlDetails_SelectionChanged);
            //
            // tabPageDetails
            //
            this.tabPageDetails.Controls.Add(this.buttonRename);
            this.tabPageDetails.Controls.Add(this.buttonOpenFolder);
            this.tabPageDetails.Controls.Add(this.buttonSetCommet);
            this.tabPageDetails.Controls.Add(this.textBoxComment);
            this.tabPageDetails.Controls.Add(this.labelComment);
            this.tabPageDetails.Controls.Add(this.tx_fileName);
            this.tabPageDetails.Controls.Add(this.tx_completeName);
            this.tabPageDetails.Controls.Add(this.label6);
            this.tabPageDetails.Controls.Add(this.label5);
            this.tabPageDetails.Controls.Add(this.panel_fileDetails);
            this.tabPageDetails.Location = new System.Drawing.Point(0, 0);
            this.tabPageDetails.Name = "tabPageDetails";
            this.tabPageDetails.Size = new System.Drawing.Size(342, 221);
            this.tabPageDetails.TabIndex = 0;
            this.tabPageDetails.Text = "Details";
            //
            // buttonOpenFolder
            //
            this.buttonOpenFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
开发者ID:elnomade,项目名称:hathi,代码行数:67,代码来源:FormUploads.cs

示例2: InitializeComponent


//.........这里部分代码省略.........
     //
     this.buttonAddeLink.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonAddeLink.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.buttonAddeLink.Location = new System.Drawing.Point(534, 2);
     this.buttonAddeLink.Name = "buttonAddeLink";
     this.buttonAddeLink.Size = new System.Drawing.Size(80, 21);
     this.buttonAddeLink.TabIndex = 2;
     this.buttonAddeLink.Text = "Add eLink";
     this.buttonAddeLink.Click += new System.EventHandler(this.buttonAddeLink_Click);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 5);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(48, 16);
     this.label1.TabIndex = 1;
     this.label1.Text = "Filter:";
     //
     // tabControlFilter
     //
     this.tabControlFilter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.tabControlFilter.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(235)), ((System.Byte)(241)), ((System.Byte)(250)));
     //this.tabControlFilter.ButtonActiveColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     //this.tabControlFilter.ButtonInactiveColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     this.tabControlFilter.ContextMenu = this.contextMenuFilter;
     this.tabControlFilter.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151)));
     //this.tabControlFilter.HideTabsMode = Crownwood.Magic.Controls.TabControl.HideTabsModes.ShowAlways;
     //this.tabControlFilter.HotTextColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151)));
     this.tabControlFilter.Location = new System.Drawing.Point(56, 1);
     this.tabControlFilter.Name = "tabControlFilter";
     //this.tabControlFilter.SelectedIndex = 0;
     //this.tabControlFilter.SelectedTab = this.tabPageAll;
     tabPageAll.Activate();
     this.tabControlFilter.Size = new System.Drawing.Size(472, 26);
     this.tabControlFilter.TabIndex = 0;
     this.tabPageAll.ShowCloseButton(false);
     this.tabPageStarted.ShowCloseButton(false);
     this.tabPageStopped.ShowCloseButton(false);
     this.tabControlFilter.AddRange(new TabPage[] {
     this.tabPageAll,
     this.tabPageStarted,
     this.tabPageStopped
     });
     //this.tabControlFilter.TextColor = System.Drawing.Color.FromArgb(((System.Byte)(68)), ((System.Byte)(69)), ((System.Byte)(151)));
     this.tabControlFilter.SelectionChanged += new System.EventHandler(this.tabControlFilter_SelectionChanged);
     //
     // contextMenuFilter
     //
     this.contextMenuFilter.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     this.menuItemShowCount,
     this.menuItemShowTotalSizes,
     this.menuItem1,
     this.menuItemAutoSort
     });
     //
     // menuItemShowCount
     //
     this.menuItemShowCount.Checked = true;
     this.menuItemShowCount.Index = 0;
     this.menuItemShowCount.Text = "Show count";
     //
     // menuItemShowTotalSizes
     //
     this.menuItemShowTotalSizes.Checked = true;
     this.menuItemShowTotalSizes.Index = 1;
开发者ID:elnomade,项目名称:hathi,代码行数:67,代码来源:FormDownloads.cs


注:本文中的TabPage.Activate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。