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

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM