本文整理汇总了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();
}
}
示例2: tabControl1_Selected
private void tabControl1_Selected(object sender, TabControlEventArgs e)
{
if (e.TabPageIndex == 1)
{
}
}
示例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);
}
示例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;
}
}
示例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;
}
示例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);
}
}
示例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;
}
示例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;
}
}
示例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;
}
示例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();
}
}
示例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";
}
}
示例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 += ")";
}
}
示例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;
}
}
示例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);
}
示例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;
}
}