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);
    }

  • 相关阅读:
    五.jQuery源码解析之jQuery.extend(),jQuery.fn.extend()
    根据插件Swipe,结合jQuery封装成的新的jQuery插件
    四.jQuery源码解析之jQuery.fn.init()的参数解析
    三.jQuery源码解析之jQuery的框架图
    二.jQuery源码解析之构建jQuery之构建函数jQuery的7种用法
    一.jQuery源码解析之总体架构
    javascript如何判断手机端的浏览器是否支持触碰功能
    javascript如何判断是手机还是电脑访问本网页
    javascript精髓篇之原型链维护和继承.
    VS2012破解_序列号
  • 原文地址:https://www.cnblogs.com/silvia-z/p/7589113.html
Copyright © 2011-2022 走看看