Button cbtn = new Button();
            cbtn.BackgroundImage = global::MIS.Properties.Resources.button2;    //从资源文件中引用
           
 btn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;   

            cbtn.Dock 
= DockStyle.Top;
            cbtn.Text 
= ctext;
            cbtn.Name 
= cname;            
            cbtn.FlatStyle 
= System.Windows.Forms.FlatStyle.Flat;
            cbtn.FlatAppearance.BorderSize 
= 0;
            cbtn.Margin 
= new System.Windows.Forms.Padding(0000);
            cbtn.BackColor 
= System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(233)))), ((int)(((byte)(233)))));
            
//btn.Location = new System.Drawing.Point(0, 0);
            cbtn.Font = new Font(""10);
            cbtn.Size 
= new System.Drawing.Size(18325);
            cbtn.Cursor 
= Cursors.Hand;
            cbtn.Visible 
= false;
            cbtn.Click 
+= new EventHandler(btn_ClickRightBind);
            
this.flowLayoutPanel1.Controls.Add(cbtn);

 

相关文章:

  • 2022-12-23
  • 2021-11-09
  • 2021-10-22
  • 2021-12-28
  • 2021-05-17
  • 2022-12-23
  • 2021-06-05
  • 2021-06-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2021-06-16
相关资源
相似解决方案