namespace LayoutSample { partial class AutoScalingForm { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// /// Clean up any resources being used. /// protected override void Dispose(bool disposing) { if( disposing && (components != null) ) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.anchoredTextBox = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(8, 14); this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(119, 13); this.label1.TabIndex = 0; this.label1.Text = "My perfectly-sized label:"; // // anchoredTextBox // this.anchoredTextBox.Location = new System.Drawing.Point(127, 11); this.anchoredTextBox.Margin = new System.Windows.Forms.Padding(2); this.anchoredTextBox.Name = "anchoredTextBox"; this.anchoredTextBox.Size = new System.Drawing.Size(136, 20); this.anchoredTextBox.TabIndex = 1; this.anchoredTextBox.Text = "Some text in the textbox"; // // AutoScalingForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(288, 44); this.Controls.Add(this.anchoredTextBox); this.Controls.Add(this.label1); this.Margin = new System.Windows.Forms.Padding(2); this.Name = "AutoScalingForm"; this.Text = "AutoScaling"; this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox anchoredTextBox; } }