// *********************************************************************** // Assembly : HZH_Controls // Created : 08-08-2019 // // *********************************************************************** // // Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com // // // Blog: https://www.cnblogs.com/bfyx // GitHub:https://github.com/kwwwvagaa/NetWinformControl // gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git // // If you use this code, please keep this note. // *********************************************************************** namespace HZH_Controls.Controls { /// /// Class UCCheckBox. /// Implements the /// /// partial class UCCheckBox { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; /// /// 清理所有正在使用的资源。 /// /// 如果应释放托管资源,为 true;否则为 false。 protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region 组件设计器生成的代码 /// /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// private void InitializeComponent() { this.panel1 = new System.Windows.Forms.Panel(); this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // panel1 // this.panel1.BackgroundImage = global::HZH_Controls.Properties.Resources.checkbox0; this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.Location = new System.Drawing.Point(1, 1); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(18, 28); this.panel1.TabIndex = 0; this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.CheckBox_MouseDown); // // label1 // this.label1.Dock = System.Windows.Forms.DockStyle.Fill; this.label1.Font = new System.Drawing.Font("微软雅黑", 12F); this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(62)))), ((int)(((byte)(62))))); this.label1.Location = new System.Drawing.Point(19, 1); this.label1.Name = "label1"; this.label1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); this.label1.Size = new System.Drawing.Size(213, 28); this.label1.TabIndex = 1; this.label1.Text = "复选框"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.CheckBox_MouseDown); // // UCCheckBox // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.Color.Transparent; this.Controls.Add(this.label1); this.Controls.Add(this.panel1); this.Name = "UCCheckBox"; this.Padding = new System.Windows.Forms.Padding(1); this.Size = new System.Drawing.Size(233, 30); this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.CheckBox_MouseDown); this.ResumeLayout(false); } #endregion /// /// The panel1 /// private System.Windows.Forms.Panel panel1; /// /// The label1 /// private System.Windows.Forms.Label label1; } }