【winfrom-Button】设置带图标样式的Button

this.myButton.BackColor = System.Drawing.SystemColors.Control;
this.myButton.FlatAppearance.BorderColor = System.Drawing.SystemColors.Control;
this.myButton.FlatAppearance.BorderSize = 0;
this.myButton.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control;
this.myButton.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control;
this.myButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.myButton.Image = ((System.Drawing.Image)(resources.GetObject("myButton.Image")));
this.myButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.myButton.Text = "ParamsSetting";
this.myButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.myButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;

  

原文地址:https://www.cnblogs.com/Sukie-s-home/p/6734057.html