當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。