Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// visit http://stackoverflow.com/q/12338241/1488067
- /// for more info
- public class Form1 : Form
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.tabControl1 = new System.Windows.Forms.TabControl();
- this.tabPage = new System.Windows.Forms.TabPage();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.tabControl1.SuspendLayout();
- this.tabPage.SuspendLayout();
- this.SuspendLayout();
- //
- // tabControl1
- //
- this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.tabControl1.Controls.Add(this.tabPage);
- this.tabControl1.Location = new System.Drawing.Point(12, 37);
- this.tabControl1.Name = "tabControl1";
- this.tabControl1.SelectedIndex = 0;
- this.tabControl1.Size = new System.Drawing.Size(260, 213);
- this.tabControl1.TabIndex = 0;
- //
- // tabPage
- //
- this.tabPage.Controls.Add(this.label2);
- this.tabPage.Controls.Add(this.textBox1);
- this.tabPage.Location = new System.Drawing.Point(4, 22);
- this.tabPage.Name = "tabPage";
- this.tabPage.Padding = new System.Windows.Forms.Padding(3);
- this.tabPage.Size = new System.Drawing.Size(252, 187);
- this.tabPage.TabIndex = 0;
- this.tabPage.Text = "One tab";
- this.tabPage.UseVisualStyleBackColor = true;
- //
- // textBox1
- //
- this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.textBox1.Location = new System.Drawing.Point(17, 38);
- this.textBox1.Multiline = true;
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(216, 130);
- this.textBox1.TabIndex = 0;
- this.textBox1.Text = "This is a text box.";
- //
- // label2
- //
- this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.label2.Location = new System.Drawing.Point(14, 13);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(219, 15);
- this.label2.TabIndex = 2;
- this.label2.Text = "Some other label";
- //
- // Form1
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(284, 262);
- this.Controls.Add(this.tabControl1);
- this.Name = "Form1";
- this.Text = "Test form";
- this.tabControl1.ResumeLayout(false);
- this.tabPage.ResumeLayout(false);
- this.tabPage.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- #endregion
- private System.Windows.Forms.TabControl tabControl1;
- private System.Windows.Forms.TabPage tabPage;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.TextBox textBox1;
- public Form1()
- {
- InitializeComponent();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement