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


C# TabControl.Show方法代码示例

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


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

示例1: CreateControls

	void CreateControls(System.Drawing.Color color)
	{
			tabctrl = new TabControl();
			tabctrl.Dock = DockStyle.Fill;
			tabctrl.Parent = panel2;
			tabctrl.Show();

		using (StreamReader sReader = new StreamReader(playlist_dir+"list.txt"))
        {
			int length = File.ReadAllLines(playlist_dir+"list.txt").Length;
				
			tabpage = new TabPage[length];
			ListView[] listview = new ListView[length];
			ListViewItem[] listviewitem = new ListViewItem[length];
			
          string line;
          int i = 0;
          
          while ((line = sReader.ReadLine()) != null)
                {
          	string[] values = line.Split('|');
          	
          	tabpage[i] = new TabPage(values[0]);
          	tabpage[i].Name = i.ToString();
          	tabpage[i].Parent = tabctrl;
          	tabpage[i].BackColor = color;

          	listview[i] = new ListView();
          	listview[i].Name = "listview"+i.ToString();
          	listview[i].DoubleClick += (lv_DoubleClick);
          	listview[i].Dock = DockStyle.Fill;
          	listview[i].GridLines = true;
          	listview[i].View = View.Details;
          	listview[i].Parent = tabpage[i];
          	listview[i].BackColor = color;
          	listview[i].Columns.Add("Станция",175);
          	LoadLlaylist(values[1],listview[i]);
          	 i = i+1;
             	}
         
           }		
	}
开发者ID:hottabxp,项目名称:MiniRadio,代码行数:42,代码来源:MainForm.cs

示例2: showTabPage

        private void showTabPage(TabControl tabcontrol)
        {
            tabcontrol.Location = new Point(-10, -10);
            tabcontrol.Size = new System.Drawing.Size(3000, 3000);
            foreach (Control x in tabcontrol.Controls)
            {
                if (typeof(Label).Equals(x))
                {

                }
            }
            tabcontrol.Show();
        }
开发者ID:CCHolmgren,项目名称:Holmgrens-experiment,代码行数:13,代码来源:Form1.cs

示例3: AddDesigner

 public void AddDesigner(string FormFileName)
 {
     FirstCodeGeneration = FormFileName == null;
     if (DesignerAndCodeTabs != null) return;
     DesignerAndCodeTabs = new TabControl();
     DesignerAndCodeTabs.Visible = false;
     Controls.Add(DesignerAndCodeTabs);
     DesignerAndCodeTabs.Dock = DockStyle.Fill;
     DesignerAndCodeTabs.TabPages.Add(PascalABCCompiler.StringResources.Get("VP_MF_M_FORM_TAB"));
     DesignerAndCodeTabs.TabPages.Add(PascalABCCompiler.StringResources.Get("VP_MF_M_PROGRAM_TAB"));
     DesignerPage = DesignerAndCodeTabs.TabPages[0];
     TextPage = DesignerAndCodeTabs.TabPages[1];
     Controls.Remove(basePanel);
     TextPage.Controls.Add(basePanel);
     MainForm.AddToolBox();
     MainForm.AddPropertiesWindow();
     Designer = new FormsDesignerViewContent(this);
     Designer.LoadDesigner(FormFileName);
     DesignerAndCodeTabs.SelectedIndexChanged += tabControl_SelectedIndexChanged;
     Designer.Modify += SetDocumentChanged;
     Control designerSurface = Designer.DesignSurface.View as Control;
     designerSurface.Dock = DockStyle.Fill;
     DesignerPage.Controls.Add(designerSurface);
     FormsDesignerViewContent.PropertyPad.SetActiveContainer(Designer.PropertyContainer);
     DesignerAndCodeTabs.Show();
     MainForm.UpdateDesignerIsActive();
     //MainForm.UpdateUndoRedoEnabled(); //roman//
 }
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:28,代码来源:CodeFileDocument.cs


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