180 lines
7.0 KiB
C#
180 lines
7.0 KiB
C#
namespace SetWindowPosition
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <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.btnSet = new System.Windows.Forms.Button();
|
|
this.txtY = new System.Windows.Forms.TextBox();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.txtX = new System.Windows.Forms.TextBox();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.txtHeight = new System.Windows.Forms.TextBox();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.txtWidth = new System.Windows.Forms.TextBox();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
|
this.SuspendLayout();
|
|
//
|
|
// btnSet
|
|
//
|
|
this.btnSet.Location = new System.Drawing.Point(15, 143);
|
|
this.btnSet.Name = "btnSet";
|
|
this.btnSet.Size = new System.Drawing.Size(136, 23);
|
|
this.btnSet.TabIndex = 21;
|
|
this.btnSet.Text = "Set";
|
|
this.btnSet.UseVisualStyleBackColor = true;
|
|
this.btnSet.Click += new System.EventHandler(this.btnSet_Click);
|
|
//
|
|
// txtY
|
|
//
|
|
this.txtY.Location = new System.Drawing.Point(80, 117);
|
|
this.txtY.Name = "txtY";
|
|
this.txtY.Size = new System.Drawing.Size(71, 20);
|
|
this.txtY.TabIndex = 20;
|
|
this.txtY.Text = "10";
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Location = new System.Drawing.Point(12, 120);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(17, 13);
|
|
this.label4.TabIndex = 19;
|
|
this.label4.Text = "Y:";
|
|
//
|
|
// txtX
|
|
//
|
|
this.txtX.Location = new System.Drawing.Point(80, 91);
|
|
this.txtX.Name = "txtX";
|
|
this.txtX.Size = new System.Drawing.Size(71, 20);
|
|
this.txtX.TabIndex = 18;
|
|
this.txtX.Text = "10";
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.AutoSize = true;
|
|
this.label5.Location = new System.Drawing.Point(12, 94);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(17, 13);
|
|
this.label5.TabIndex = 17;
|
|
this.label5.Text = "X:";
|
|
//
|
|
// txtHeight
|
|
//
|
|
this.txtHeight.Location = new System.Drawing.Point(80, 65);
|
|
this.txtHeight.Name = "txtHeight";
|
|
this.txtHeight.Size = new System.Drawing.Size(71, 20);
|
|
this.txtHeight.TabIndex = 16;
|
|
this.txtHeight.Text = "150";
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(12, 68);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(41, 13);
|
|
this.label3.TabIndex = 15;
|
|
this.label3.Text = "Height:";
|
|
//
|
|
// txtWidth
|
|
//
|
|
this.txtWidth.Location = new System.Drawing.Point(80, 39);
|
|
this.txtWidth.Name = "txtWidth";
|
|
this.txtWidth.Size = new System.Drawing.Size(71, 20);
|
|
this.txtWidth.TabIndex = 14;
|
|
this.txtWidth.Text = "300";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(12, 42);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(38, 13);
|
|
this.label2.TabIndex = 13;
|
|
this.label2.Text = "Width:";
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(12, 14);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(62, 13);
|
|
this.label1.TabIndex = 11;
|
|
this.label1.Text = "Application:";
|
|
//
|
|
// comboBox1
|
|
//
|
|
this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.comboBox1.FormattingEnabled = true;
|
|
this.comboBox1.Location = new System.Drawing.Point(80, 14);
|
|
this.comboBox1.Name = "comboBox1";
|
|
this.comboBox1.Size = new System.Drawing.Size(247, 21);
|
|
this.comboBox1.TabIndex = 22;
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(339, 178);
|
|
this.Controls.Add(this.comboBox1);
|
|
this.Controls.Add(this.btnSet);
|
|
this.Controls.Add(this.txtY);
|
|
this.Controls.Add(this.label4);
|
|
this.Controls.Add(this.txtX);
|
|
this.Controls.Add(this.label5);
|
|
this.Controls.Add(this.txtHeight);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.txtWidth);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.label1);
|
|
this.Name = "Form1";
|
|
this.Text = "Set window position";
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button btnSet;
|
|
private System.Windows.Forms.TextBox txtY;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.TextBox txtX;
|
|
private System.Windows.Forms.Label label5;
|
|
private System.Windows.Forms.TextBox txtHeight;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.TextBox txtWidth;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.ComboBox comboBox1;
|
|
}
|
|
}
|
|
|