private void InitializeComponent() { this.contentContainer = new Switch_Toolbox.Library.Forms.STPanel(); this.TitleBar = new System.Windows.Forms.Panel(); this.LblTitle = new System.Windows.Forms.Label(); this.PicIcon = new System.Windows.Forms.PictureBox(); this.BtnMinimize = new System.Windows.Forms.PictureBox(); this.BtnMinMax = new System.Windows.Forms.PictureBox(); this.BtnClose = new System.Windows.Forms.PictureBox(); this.contentContainer.SuspendLayout(); this.TitleBar.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.PicIcon)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.BtnMinimize)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.BtnMinMax)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.BtnClose)).BeginInit(); this.SuspendLayout(); // // contentContainer // this.contentContainer.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.contentContainer.Controls.Add(this.TitleBar); this.contentContainer.Location = new System.Drawing.Point(3, 2); this.contentContainer.Name = "contentContainer"; this.contentContainer.Size = new System.Drawing.Size(543, 393); this.contentContainer.TabIndex = 11; // // TitleBar // this.TitleBar.BackColor = System.Drawing.Color.White; this.TitleBar.Controls.Add(this.LblTitle); this.TitleBar.Controls.Add(this.PicIcon); this.TitleBar.Controls.Add(this.BtnMinimize); this.TitleBar.Controls.Add(this.BtnMinMax); this.TitleBar.Controls.Add(this.BtnClose); this.TitleBar.Dock = System.Windows.Forms.DockStyle.Top; this.TitleBar.Location = new System.Drawing.Point(0, 0); this.TitleBar.Name = "TitleBar"; this.TitleBar.Size = new System.Drawing.Size(543, 25); this.TitleBar.TabIndex = 10; this.TitleBar.DoubleClick += new System.EventHandler(this.TitleBar_DoubleClick); this.TitleBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TitleBar_MouseDown); // // LblTitle // this.LblTitle.AutoSize = true; this.LblTitle.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.LblTitle.Location = new System.Drawing.Point(20, 3); this.LblTitle.Name = "LblTitle"; this.LblTitle.Size = new System.Drawing.Size(33, 17); this.LblTitle.TabIndex = 5; this.LblTitle.Text = "Title"; this.LblTitle.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TitleBar_MouseDown); // // PicIcon // this.PicIcon.Location = new System.Drawing.Point(5, 5); this.PicIcon.Name = "PicIcon"; this.PicIcon.Size = new System.Drawing.Size(16, 16); this.PicIcon.TabIndex = 4; this.PicIcon.TabStop = false; // // BtnMinimize // this.BtnMinimize.BackColor = System.Drawing.Color.Transparent; this.BtnMinimize.Dock = System.Windows.Forms.DockStyle.Right; this.BtnMinimize.Image = global::Switch_Toolbox.Library.Properties.Resources.minimize; this.BtnMinimize.Location = new System.Drawing.Point(429, 0); this.BtnMinimize.Name = "BtnMinimize"; this.BtnMinimize.Size = new System.Drawing.Size(38, 25); this.BtnMinimize.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.BtnMinimize.TabIndex = 3; this.BtnMinimize.TabStop = false; this.BtnMinimize.Click += new System.EventHandler(this.BtnMinimize_Click); this.BtnMinimize.MouseEnter += new System.EventHandler(this.BtnMinimize_MouseEnter); this.BtnMinimize.MouseLeave += new System.EventHandler(this.BtnMinimize_MouseLeave); // // BtnMinMax // this.BtnMinMax.BackColor = System.Drawing.Color.Transparent; this.BtnMinMax.Dock = System.Windows.Forms.DockStyle.Right; this.BtnMinMax.Image = global::Switch_Toolbox.Library.Properties.Resources.maximize; this.BtnMinMax.Location = new System.Drawing.Point(467, 0); this.BtnMinMax.Name = "BtnMinMax"; this.BtnMinMax.Size = new System.Drawing.Size(38, 25); this.BtnMinMax.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.BtnMinMax.TabIndex = 2; this.BtnMinMax.TabStop = false; this.BtnMinMax.Click += new System.EventHandler(this.BtnMinMax_Click); this.BtnMinMax.MouseEnter += new System.EventHandler(this.BtnMinMax_MouseEnter); this.BtnMinMax.MouseLeave += new System.EventHandler(this.BtnMinMax_MouseLeave); // // BtnClose // this.BtnClose.BackColor = System.Drawing.Color.Transparent; this.BtnClose.Dock = System.Windows.Forms.DockStyle.Right; this.BtnClose.Image = global::Switch_Toolbox.Library.Properties.Resources.Close; this.BtnClose.Location = new System.Drawing.Point(505, 0); this.BtnClose.Name = "BtnClose"; this.BtnClose.Size = new System.Drawing.Size(38, 25); this.BtnClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.BtnClose.TabIndex = 1; this.BtnClose.TabStop = false; this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click); this.BtnClose.MouseEnter += new System.EventHandler(this.BtnClose_MouseEnter); this.BtnClose.MouseLeave += new System.EventHandler(this.BtnClose_MouseLeave); // // STForm // this.ClientSize = new System.Drawing.Size(549, 398); this.ControlBox = false; this.Controls.Add(this.contentContainer); this.DoubleBuffered = true; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "STForm"; this.Shown += new System.EventHandler(this.STForm_Shown); this.Paint += new System.Windows.Forms.PaintEventHandler(this.STForm_Paint); this.Enter += new System.EventHandler(this.STForm_Enter); this.Leave += new System.EventHandler(this.STForm_Leave); this.contentContainer.ResumeLayout(false); this.TitleBar.ResumeLayout(false); this.TitleBar.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.PicIcon)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.BtnMinimize)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.BtnMinMax)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.BtnClose)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(STUserControl)); this.stTextBox1 = new Switch_Toolbox.Library.Forms.STTextBox(); this.downArrow = new System.Windows.Forms.PictureBox(); this.upArrow = new System.Windows.Forms.PictureBox(); this.stPanel1 = new Switch_Toolbox.Library.Forms.STPanel(); ((System.ComponentModel.ISupportInitialize)(this.downArrow)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.upArrow)).BeginInit(); this.stPanel1.SuspendLayout(); this.SuspendLayout(); // // stTextBox1 // this.stTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.stTextBox1.Location = new System.Drawing.Point(3, 2); this.stTextBox1.Name = "stTextBox1"; this.stTextBox1.Size = new System.Drawing.Size(119, 20); this.stTextBox1.TabIndex = 0; this.stTextBox1.TextChanged += new System.EventHandler(this.stTextBox1_TextChanged); // // downArrow // this.downArrow.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.downArrow.Image = ((System.Drawing.Image)(resources.GetObject("downArrow.Image"))); this.downArrow.Location = new System.Drawing.Point(1, 12); this.downArrow.Name = "downArrow"; this.downArrow.Size = new System.Drawing.Size(19, 11); this.downArrow.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.downArrow.TabIndex = 2; this.downArrow.TabStop = false; // // upArrow // this.upArrow.Anchor = System.Windows.Forms.AnchorStyles.Top; this.upArrow.Image = global::Switch_Toolbox.Library.Properties.Resources.NumbericUpDownArrow; this.upArrow.Location = new System.Drawing.Point(1, 3); this.upArrow.Name = "upArrow"; this.upArrow.Size = new System.Drawing.Size(19, 11); this.upArrow.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.upArrow.TabIndex = 1; this.upArrow.TabStop = false; // // stPanel1 // this.stPanel1.Controls.Add(this.upArrow); this.stPanel1.Controls.Add(this.downArrow); this.stPanel1.Location = new System.Drawing.Point(125, 0); this.stPanel1.Name = "stPanel1"; this.stPanel1.Size = new System.Drawing.Size(23, 25); this.stPanel1.TabIndex = 3; // // STUserControl // this.Controls.Add(this.stPanel1); this.Controls.Add(this.stTextBox1); this.Name = "STUserControl"; this.Size = new System.Drawing.Size(148, 25); this.ValueChanged += new System.EventHandler(stTextBox1_TextChanged); ((System.ComponentModel.ISupportInitialize)(this.downArrow)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.upArrow)).EndInit(); this.stPanel1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }