本文整理汇总了C#中System.Windows.Forms.TabControlEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# TabControlEventArgs类的具体用法?C# TabControlEventArgs怎么用?C# TabControlEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TabControlEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了TabControlEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: tabControl1_Selected
private void tabControl1_Selected(object sender, TabControlEventArgs e)
{
switch (e.TabPage.Text)
{
case "Customers":
LoadCustomers();
break;
case "Rewards":
LoadRewards();
break;
default:
break;
}
ActiveTab = e.TabPage.Text;
}
开发者ID:rodchar,项目名称:cstest,代码行数:16,代码来源:Form1.cs
示例17: tabControl1_Selected
private void tabControl1_Selected(object sender, TabControlEventArgs e)
{
if (tabControl1.SelectedIndex == 1)
{
WorkDBF wd = new WorkDBF();
DataTable dt = null;
try {
dt = wd.getTable(textBox1.Text, Path.GetFileName(listBox1.SelectedItem.ToString())); }
catch
{
MessageBox.Show("Список файлів пустий.");
}
if (dt != null)
{
this.dataGridView1.DataSource = dt;
}
}
}
开发者ID:romasha5,项目名称:bank,代码行数:20,代码来源:Bank.cs
示例18: tabMain_Selected
private void tabMain_Selected(object sender, TabControlEventArgs e)
{
currentTab = e.TabPage;
if (currentTab.Text == Language.Resource.ManageUsers)
{
LoadUser();
}
else if (currentTab.Text == Language.Resource.ManageConnections)
{
LoadConnection();
}
else if (currentTab.Text == Language.Resource.ManageEmails)
{
LoadMail();
}
else if (currentTab.Text == Language.Resource.ManageAccounts)
{
LoadAccount();
}
}
开发者ID:lsamu,项目名称:web-automation,代码行数:21,代码来源:frmManager.cs
示例19: tabControl1_Selected
private void tabControl1_Selected(object sender, TabControlEventArgs e)
{
if (e.TabPage.Text == "SQL")
{
if (checkBoxUnique.Checked)
textBoxSql.Text = "CREATE UNIQUE INDEX ";
else
textBoxSql.Text = "CREATE INDEX ";
textBoxSql.Text += string.Format("{0} ON {1} (", textBoxIndexName.Text, labelTableName.Text);
for (int i = 0; i < dataGridViewColumnName.Rows.Count; i++ )
{
if (dataGridViewColumnName.Rows[i].Cells[0].Value != null)
{
if (i > 0)
textBoxSql.Text += ", ";
textBoxSql.Text += string.Format("{0}", dataGridViewColumnName.Rows[i].Cells[0].Value.ToString());
}
}
textBoxSql.Text += ")";
}
}
开发者ID:radtek,项目名称:toaddotnet,代码行数:22,代码来源:FormAddIndex.cs
示例20: tabControl1_Selected
private void tabControl1_Selected(object sender, TabControlEventArgs e)
{
switch (e.TabPage.Text)
{
case "Info":
break;
case "Vertex":
this.RefreshVertex();
break;
case "Edge":
this.RefreshEdge();
break;
case "Face":
this.RefreshFace();
break;
case "Tetrahedron":
this.RefreshTetrahedron();
break;
default:
break;
}
}
开发者ID:meshdgp,项目名称:MeshDGP,代码行数:22,代码来源:TetMeshInfo.cs
注:本文中的System.Windows.Forms.TabControlEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论