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

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

时间: 2024-11-10 01:24:41

color/forecolor/location/cursor等基本设置 hscrollBar/vscrollBar/progressBar/menuStrip/toolStrip/statusStrip等基本操作的相关文章

EUI组件之HScrollBar VScrollBar

一.常规使用 官网教程里没有这个组件的使用方法 这个组件配合Scroller使用 拖动一个scroller到exml上.scroller上已经默认存在了HScrollBar和VScrollBar 当图片大于scroller时,拖动图片,会显示出垂直和水平的滑块 实际效果 其他: 1. 设置滑块的显示方式 默认情况下是auto. 2.更换滑块的皮肤样式 默认滑块是个蓝色的小方块 尝试在exml里找,没有. 所以只能代码里找到scroller的verticalScrollBar属性,然后替换它的图片

UVA1625 / UVALive 5841 Color Length DP

简单DP,dp[i][j]表示从第一个序列里取出i个和从第j个序列里取出j个的组合的最小值,可以从两个方向转移过来,每次转移加上已经出现过的且还没有出现完的字母的个数. O(n?m)的复杂度. 1625 Color Length Cars painted in different colors are moving in a row on the road as shown in Figure 1. The color of each car is represented by a single

鼠标点击出现爱心+社会主义价值观+随机颜色的文字+鼠标cursor自定义图片

js动画--鼠标点击出现爱心 只需将如下JS代码放到</body>之前就好了 <script type='text/javascript' src='//api.dujin.org/js/aixintexiao.js'></script> 完整代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <

System.Windows.Forms

1 File: winforms\Managed\System\WinForms\DataGridView.cs 2 Project: ndp\fx\src\System.Windows.Forms.csproj (System.Windows.Forms) 3 4 //------------------------------------------------------------------------------ 5 // <copyright file="DataGridVi

System.Windows.Forms.Control : Component, IOleControl, IOleObject, IOleInPlaceObject, IOleInPlaceActiveObject....

#region 程序集 System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll #endregion using System.Collections; using System.ComponentModel; using Syst

模拟百度搜索框,输入时显示历史记录

今天写了个小demo,利用本地存储的特点,模拟百度搜索框. 主要知识是利用本地存储的特点,模拟百度搜索时的历史记录显示. 主要HTML代码为 <div class="search"> <input type="text"/> <button class="btn">搜索</button> </div> <ul class="hidden"> <li&

列表控件

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms; namespace EfwControls.CustomControl{ /// <summary> /// 前景或背景 /// </su

C# PPT Operator

<pre name="code" class="csharp">using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Core; using PPT = Microsoft.Office.Interop.PowerPoint; using System.Windows; using Syste

C# WinForm 下的虚拟键盘

using System; using System.Collections.Generic; using System.Linq; using System.Drawing; using System.Drawing.Drawing2D; using System.Runtime.InteropServices; using System.Windows.Forms; namespace VirtualKeyboard { static class Program { [STAThread]