zoukankan      html  css  js  c++  java
  • color/forecolor/location/cursor等基本设置 hscrollBar/vscrollBar/progressBar/menuStrip/toolStrip/statusStrip等基本操作

    private void toolStripButton1_Click(object sender, EventArgs e)
    {//位置,背景颜色
    this.label1.Location = new Point(50,60);
    this.toolStripStatusLabel1.Text = "上";

    }

    private void toolStripButton2_Click(object sender, EventArgs e)
    {
    this.label1.Location = new Point(50, 100);
    this.toolStripStatusLabel1.Text = "中";
    }

    private void toolStripButton3_Click(object sender, EventArgs e)
    {
    this.label1.Location = new Point(50, 140);
    this.toolStripStatusLabel1.Text = "下";
    }

    private void 上TToolStripMenuItem_Click(object sender, EventArgs e)
    {
    this.label1.Location = new Point(50, 60);
    this.toolStripStatusLabel1.Text = "上";
    }

    private void 中MToolStripMenuItem_Click(object sender, EventArgs e)
    {
    this.label1.Location = new Point(50, 100);
    this.toolStripStatusLabel1.Text = "中";
    }

    private void 下BToolStripMenuItem_Click(object sender, EventArgs e)
    {
    this.label1.Location = new Point(50, 140);
    this.toolStripStatusLabel1.Text = "下";
    }

    private void toolStripButton4_Click(object sender, EventArgs e)
    {
    this.label1.BackColor = Color.Red;
    this.toolStripStatusLabel1.Text = "红色";
    }

    private void toolStripButton5_Click(object sender, EventArgs e)
    {
    this.label1.BackColor = Color.Green;
    this.toolStripStatusLabel1.Text = "绿色";
    }

    private void toolStripButton6_Click(object sender, EventArgs e)
    {
    this.label1.BackColor = Color.Blue ;
    this.toolStripStatusLabel1.Text = "蓝色";
    }

     

    private void toolStripButton1_Click(object sender, EventArgs e)
    {//光标
    this.Cursor = Cursors.Default;
    this.toolStripStatusLabel1.Text = "默认";
    }

    private void toolStripButton2_Click(object sender, EventArgs e)
    {
    this.Cursor = Cursors.WaitCursor;
    this.toolStripStatusLabel1.Text = "等待";
    }

    private void toolStripButton3_Click(object sender, EventArgs e)
    {
    this.Cursor = Cursors.Cross;
    this.toolStripStatusLabel1.Text = "十字";
    }

     

    private void Form1_Load(object sender, EventArgs e)
    {//透明度
    progressBar1.Value = trackBar1.Value;
    this.Opacity = 0.5 + (double)trackBar1.Value / 100;
    // progressBar1--->cursorChenged
    //trackBar1-->Scroll
    }

    private void Form1_Load(object sender, EventArgs e)

    {//前景色
    this.ForeColor = Color.FromArgb(hScrollBar1.Value, hScrollBar2.Value, hScrollBar3.Value);
    }

  • 相关阅读:
    androidstudio配置模拟器路径
    Linux常见命令
    逆向助手使用
    Git服务器回滚到固定版本
    Git使用
    使用本地Gradle版本
    系统模拟器创建
    AndroidStudio设置代理
    关联、参数化、思考时间、检查点、事务的设置方式
    SQL:内连接、左外连接、右外连接、全连接、交叉连接区别
  • 原文地址:https://www.cnblogs.com/silvia-z/p/7589113.html
Copyright © 2011-2022 走看看