Inhaltsverzeichnis

TabControl

Control

private System.Windows.Forms.TabControl tabControlTimes;
this.tabControlTimes = new System.Windows.Forms.TabControl();
 
this.tabControlTimes.Controls.Add(this.tabPageTimer);			// Tab hinzufügen
this.tabControlTimes.Controls.Add(this.tabPageManuell);			// Tab hinzufügen
this.tabControlTimes.Location = new System.Drawing.Point(12, 356);
this.tabControlTimes.Name = "tabControlTimes";
this.tabControlTimes.SelectedIndex = 0;
this.tabControlTimes.Size = new System.Drawing.Size(228, 136);
this.tabControlTimes.TabIndex = 14;


Tab

tabPageTimer entspricht dem Namen des Tabs und Timer dem Titel.

private System.Windows.Forms.TabPage tabPageTimer;
this.tabPageTimer = new System.Windows.Forms.TabPage();
 
this.tabPageTimer.Controls.Add(this.label5);		// Element hinzufügen
this.tabPageTimer.Controls.Add(this.label7);		// Element hinzufügen
this.tabPageTimer.Controls.Add(this.labelTotalTime);	// Element hinzufügen
this.tabPageTimer.Location = new System.Drawing.Point(4, 22);
this.tabPageTimer.Name = "tabPageTimer";
this.tabPageTimer.Padding = new System.Windows.Forms.Padding(3);
this.tabPageTimer.Size = new System.Drawing.Size(220, 110);
this.tabPageTimer.TabIndex = 0;
this.tabPageTimer.Text = "Timer";
this.tabPageTimer.UseVisualStyleBackColor = true;

csharp/tabcontrol.txt · Zuletzt geändert: 2015/07/06 22:32 (Externe Bearbeitung)