【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