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


C# Forms.TabControlEventArgs类代码示例

本文整理汇总了C#中System.Windows.Forms.TabControlEventArgs的典型用法代码示例。如果您正苦于以下问题:C# TabControlEventArgs类的具体用法?C# TabControlEventArgs怎么用?C# TabControlEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TabControlEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了TabControlEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: frame_Selected

 void frame_Selected(object sender, TabControlEventArgs e)
 {
     if (e.TabPage == page)
     {
         ActivateControl();
     }
 }
开发者ID:pavelsavara,项目名称:nMars,代码行数:7,代码来源:IDEFrame.cs

示例2: tabControl1_Selected

        private void tabControl1_Selected(object sender, TabControlEventArgs e)
        {
            if (e.TabPageIndex == 1)
            {

            }
        }
开发者ID:hungnguyen101,项目名称:BookStoreWinform,代码行数:7,代码来源:AccountDetailForm.cs

示例3: qtabsMain_Selected

 private void qtabsMain_Selected(object sender, TabControlEventArgs e)
 {
     TabPage tmpNew = (sender as TabControl).SelectedTab;
     int procNum = Convert.ToInt32(tmpNew.Tag);
     tspMainStrip.Controls.Clear();
     //tspMainStrip.Join(Global.Plugins.AvailablePlugins[Global.Processes[procNum].PluginIndex].Instance.Menu);
 }
开发者ID:Zexks,项目名称:QLite,代码行数:7,代码来源:Main.cs

示例4: onTabSelectionChanged

 /// <summary>
 /// When a tab is selected.
 /// </summary>
 private void onTabSelectionChanged(object pSender, TabControlEventArgs pEventArgs)
 {
     foreach (TabPage tabPage in tabs.TabPages)
     {
         tabPage.Controls[0].Visible = tabPage.TabIndex == tabs.SelectedTab.TabIndex;
     }
 }
开发者ID:thinkingmedia,项目名称:gems,代码行数:10,代码来源:JobsViewStack.cs

示例5: OnSelected

 private void OnSelected(object sender, TabControlEventArgs e)
 {
     if (e.TabPage == m_knownColorsTabPage)
         m_colorList.SelectColor(m_colorPicker.SelectedColor);
     if (e.TabPage == m_colorTabPage)
         m_colorPicker.SelectedColor = (Color)m_colorList.SelectedItem;
 }
开发者ID:gabrielnahmias,项目名称:Globule,代码行数:7,代码来源:ColorPickerDialog.cs

示例6: ECLTabControlLoadSelected

        // dynamically create ECL code listing when the tab is clicked on
        private void ECLTabControlLoadSelected(Object sender, TabControlEventArgs e)
        {
            if (e.TabPage != null && e.TabPage.Controls.Find("codepanel", false).Length > 0)
            {
                FillECLCodePanel(e.TabPage);

            }
        }
开发者ID:bsimser,项目名称:goldbox,代码行数:9,代码来源:EclFileViewer.cs

示例7: OnSelected

        protected override void OnSelected(TabControlEventArgs e) {
            base.OnSelected(e);
            Console.WriteLine("page:"+e.TabPage.Name +" index:"+e.TabPageIndex);
            Size size;
            Console.WriteLine(size = GetControlCustomSize(Controls.Find(e.TabPage.Name, false).FirstOrDefault()));
            MainForm.Size = size;


        }
开发者ID:Nucs,项目名称:nlib,代码行数:9,代码来源:SizeTabber.cs

示例8: tabControl_Selected

 private void tabControl_Selected(object sender, TabControlEventArgs e)
 {
     int index = 0;
     foreach (MenuItem mi in menuItemView.MenuItems) {
         if (mi.Text == "-") {
             break;
         }
         mi.Checked = index++ == e.TabPageIndex;
     }
 }
开发者ID:kobachi,项目名称:Bosoli,代码行数:10,代码来源:FormMain.cs

示例9: OnSelected

 private void OnSelected(object sender, TabControlEventArgs e)
 {
     m_acceptItemChangedEvent = false;
     if (e.TabPage == m_colorWheelTabPage)
         m_colorPicker.SelectedColor = m_curColor;
     if (e.TabPage == m_knownColorsTabPage)
         m_colorList.SelectedColor = m_curColor;
     if (e.TabPage == m_systemColorsTabPage)
         m_systemColorList.SelectedColor = m_curColor;
     m_acceptItemChangedEvent = true;
 }
开发者ID:Diullei,项目名称:Storm,代码行数:11,代码来源:ColorPickerDialog.cs

示例10: tabPanels_Selected

 private void tabPanels_Selected(object sender, TabControlEventArgs e)
 {
     if (tabPanels.SelectedIndex == 1)
     {
         mainController.resultController.Init();
     }
     if (tabPanels.SelectedIndex == 0)
     {
         mainController.inleesView.Refresh();
     }
 }
开发者ID:e11en,项目名称:Cellen-Tellen,代码行数:11,代码来源:MainView.cs

示例11: tabControl1_Selected

        private void tabControl1_Selected(object sender, TabControlEventArgs e)
        {

            if (e.TabPageIndex == 0)
            {
                toolStripStatusLabel1.Text = "Tab #1";
            }
            if (e.TabPageIndex == 1)
            {
                toolStripStatusLabel1.Text = "Tab #2";
            }
        }
开发者ID:porohnenko,项目名称:olegp,代码行数:12,代码来源:Form1.cs

示例12: tabControl1_Selected

 private void tabControl1_Selected(object sender, TabControlEventArgs e)
 {
     if (e.TabPage.Text == "Sql")
     {
         textBoxSql.Text =
             string.Format("ALTER TABLE {0} ADD (\n{1} {2}", tablename, textBoxcolumnName.Text, comboBoxType.Text);
         textBoxSql.Text += (!string.IsNullOrEmpty(textBoxSize.Text) ? string.Format("({0}", textBoxSize.Text) : "");
         textBoxSql.Text += (!string.IsNullOrEmpty(textBoxScale.Text) ? string.Format(",{0}", textBoxScale.Text) : "");
         textBoxSql.Text += (!string.IsNullOrEmpty(textBoxSize.Text) ? ")"  : "");
         textBoxSql.Text += (!string.IsNullOrEmpty(textBoxDefaultValue.Text) ? string.Format(" DEFAULT {0}", textBoxDefaultValue.Text) : "");
         textBoxSql.Text += ")";
     }
 }
开发者ID:radtek,项目名称:toaddotnet,代码行数:13,代码来源:FormAddCol.cs

示例13: Supremetab_Selected

 private void Supremetab_Selected(object sender, TabControlEventArgs e)
 {
     if (e.TabPageIndex.Equals(0))
     {
         this.AcceptButton = btnSCreateAccount;
         this.CancelButton = btnScancel;
     }
     else
     {
         this.AcceptButton = btnZCreateAccount;
         this.CancelButton = btnZcancel;
     }
 }
开发者ID:EdiCarlos,项目名称:MyPractices,代码行数:13,代码来源:CreateUserAccount.cs

示例14: TabControl1_Deselected

        private void TabControl1_Deselected(Object sender, TabControlEventArgs e)
        {
            // TODO: remove this message box code
            System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder();
            messageBoxCS.AppendFormat("{0} = {1}", "TabPage", e.TabPage);
            messageBoxCS.AppendLine();
            messageBoxCS.AppendFormat("{0} = {1}", "TabPageIndex", e.TabPageIndex);
            messageBoxCS.AppendLine();
            messageBoxCS.AppendFormat("{0} = {1}", "Action", e.Action);
            messageBoxCS.AppendLine();
            //MessageBox.Show(messageBoxCS.ToString(), "Deselected Event");
            if (e.TabPage != null)
                unloadTabPage(e.TabPage);

        }
开发者ID:bsimser,项目名称:goldbox,代码行数:15,代码来源:FruaCharacterViewer.cs

示例15: InjectionTabs_Selected

        private void InjectionTabs_Selected(object sender, TabControlEventArgs e)
        {
            if (e.TabPage == MainUI.PrimitiveTab)
            {
                MainUI.PTPacketTxt.Text = MainUI.ITPacketTxt.Text;

                MainUI.ITPacketTxt.Enabled = false;
                MainUI.PTPacketTxt.TextChanged += PTPacketTxt_TextChanged;
            }
            else
            {
                MainUI.ITPacketTxt.Enabled = true;
                MainUI.PTPacketTxt.TextChanged -= PTPacketTxt_TextChanged;
            }
        }
开发者ID:WhosDis,项目名称:Tanji,代码行数:15,代码来源:PrimitiveManager.cs


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