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

  

posted @ 2017-04-19 16:18  发明创造小能手  阅读(2056)  评论(0编辑  收藏  举报
levels of contents