码迷,mamicode.com
首页 > 其他好文 > 详细

color/forecolor/location/cursor等基本设置 hscrollBar/vscrollBar/progressBar/menuStrip/toolStrip/statusStrip等基本操作

时间:2017-09-24 23:37:39      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:val   item   poi   track   point   rip   send   gre   llb   

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

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

color/forecolor/location/cursor等基本设置 hscrollBar/vscrollBar/progressBar/menuStrip/toolStrip/statusStrip等基本操作

标签:val   item   poi   track   point   rip   send   gre   llb   

原文地址:http://www.cnblogs.com/silvia-z/p/7589113.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!