【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;

  

相关文章:

  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案