• .net winform 从资源文件中引用图片资源


                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);
  • 相关阅读:
    JWT
    activate-power-mode安装与设置
    redis备份与恢复
    stub_status监控Nginx使用情况!
    php-fpm,cgi,fast-cgi,nginx,php.ini,php-fpm.conf,nginx.conf
    Nginx 413 Request Entity Too Large
    Quartz作业调度框架
    mysql 查看是否存在某一张表
    JSTL 核心标签库
    J2EE maven pom.xml常用的jar包
  • 原文地址:https://www.cnblogs.com/wucg/p/1771148.html
Copyright © 2020-2023  润新知