using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms; namespace proj_92
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{
checkedListBox1.Items.Add("中国"); checkedListBox1.Items.Add("美国");
checkedListBox1.Items.Add("俄罗斯"); checkedListBox1.Items.Add("英国");
checkedListBox1.Items.Add("法国"); checkedListBox1.CheckOnClick = true;
textBox1.Text = DateTime.Now.ToString("h:mm:ss");
timer1.Enabled = true;
timer1.Interval = ; hScrollBar1.Maximum = ; hScrollBar1.Minimum = ;
hScrollBar1.SmallChange = ; hScrollBar1.LargeChange = ;
vScrollBar1.Maximum = ; vScrollBar1.Minimum = ;
vScrollBar1.SmallChange = ; vScrollBar1.LargeChange = ;
hScrollBar1.Value = ; vScrollBar1.Value = ; dateTimePicker1.Format = DateTimePickerFormat.Long;
dateTimePicker1.ShowCheckBox = true;
dateTimePicker1.ShowUpDown = false;
textBox3.Text = ""; linkLabel1.LinkColor = Color.Blue;
linkLabel1.ActiveLinkColor = Color.Green; } private void button1_Click(object sender, EventArgs e)
{
foreach (object item in checkedListBox1 .CheckedItems )
{
listBox1.Items.Add(item);
}
} private void timer1_Tick(object sender, EventArgs e)
{
textBox1.Text = DateTime.Now.ToString("h:mm:ss"); } private void hScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
textBox2.Text = hScrollBar1.Value.ToString("d");
vScrollBar1.Value = hScrollBar1.Value;
} private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
textBox2.Text = vScrollBar1.Value.ToString("d");
hScrollBar1.Value = vScrollBar1.Value;
} private void button2_Click(object sender, EventArgs e)
{
if (Convert .ToInt16 (textBox2 .Text )>= && Convert .ToInt16 (textBox2 .Text )<= )
{
hScrollBar1.Value = Convert.ToInt16(textBox2.Text);
vScrollBar1.Value = Convert.ToInt16(textBox2.Text);
}
} private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
textBox3.Text = dateTimePicker1.Value.ToString("yyyy.MM.dd hh:mm:ss");
} private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("http://blog.sina.com.cn/s/articlelist_2379298071_0_1.html");
}
}
}

带复选框的列表控件,定时器控件,滚动条控件,月历控件,日期时间控件,超链接控件

c# windows编程控件学习-2的更多相关文章

  1. c# windows编程控件学习-1

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usin ...

  2. [转]Windows平台下Makefile学习笔记

    Windows平台下Makefile学习笔记(一) 作者:朱金灿 来源:http://blog.csdn.net/clever101 决心学习Makefile,一方面是为了解决编译开源代码时需要跨编译 ...

  3. DevExpress控件学习总结(转)

    DevExpress控件学习总结   1.Navigation & Layout 1.1 Bar Manager 如果想在窗体或用户控件(user control)上添加工具条(bars)或弹 ...

  4. Windows标准控件

    学习目的 学习创建, 使用Windows标准控件(按钮, 滚动条, 静态控件, 列表框, 编辑框, 组合框); 学习使用子窗口控件操作函数(EnableWindow, MoveWindow, SetW ...

  5. 如何:对 Windows 窗体控件进行线程安全调用

    http://msdn.microsoft.com/zh-cn/library/ms171728(VS.90).aspx http://msdn.microsoft.com/zh-cn/library ...

  6. C#可扩展编程之MEF学习笔记(五):MEF高级进阶

    好久没有写博客了,今天抽空继续写MEF系列的文章.有园友提出这种系列的文章要做个目录,看起来方便,所以就抽空做了一个,放到每篇文章的最后. 前面四篇讲了MEF的基础知识,学完了前四篇,MEF中比较常用 ...

  7. C#可扩展编程之MEF学习笔记(四):见证奇迹的时刻

    前面三篇讲了MEF的基础和基本到导入导出方法,下面就是见证MEF真正魅力所在的时刻.如果没有看过前面的文章,请到我的博客首页查看. 前面我们都是在一个项目中写了一个类来测试的,但实际开发中,我们往往要 ...

  8. C#可扩展编程之MEF学习笔记(三):导出类的方法和属性

    前面说完了导入和导出的几种方法,如果大家细心的话会注意到前面我们导出的都是类,那么方法和属性能不能导出呢???答案是肯定的,下面就来说下MEF是如何导出方法和属性的. 还是前面的代码,第二篇中已经提供 ...

  9. C#可扩展编程之MEF学习笔记(二):MEF的导出(Export)和导入(Import)

    上一篇学习完了MEF的基础知识,编写了一个简单的DEMO,接下来接着上篇的内容继续学习,如果没有看过上一篇的内容, 请阅读:http://www.cnblogs.com/yunfeifei/p/392 ...

随机推荐

  1. iOS使用textfield注意的细节

    一般做登录界面或者要填写表之类的页面会经常使用到textfield.使用很简单,但是其实他有很多小的处理细节,这回让你显得有经验,交互性很好.在这里呢,我就直接拿stroyboard中的截图来说. c ...

  2. 161222、Bootstrap table 服务器端分页示例

    bootstrap版本 为 3.X bootstrap-table.min.css bootstrap-table-zh-CN.min.js bootstrap-table.min.js 前端boot ...

  3. 淘宝druid数据库连接池

    昨天偶然间在@红薯的一篇技术分享中发现了它的身影,从此想到了去看看他到底是什么西,然后在@开源中国上看到了它的功能介绍,心痒难耐 开始了对它的配置测试. 但是第一次启动就发现了一个问题, Tomat报 ...

  4. Your pain

    Your pain is the breaking of the shell that encloses your understanding. 你的痛苦是你那包裹知识的皮壳的破裂.

  5. js typeof

    var message = "some thing"; alert(typeof message); // string alert(typeof 95); // number a ...

  6. 【Jersey】IntelliJ IDEA + Maven + Jetty + Jersey搭建RESTful服务

    本文参考以下内容: 使用Jersey实现RESTful风格的webservice(一) Starting out with Jersey & Apache Tomcat using Intel ...

  7. 正则表达式(http://tieba.baidu.com/p/882391125)

      觉得不错,就记下来了   正则表达式30分钟入门教程版本:v2.31 (2009-4-11) 作者:deerchao 转载请注明来源30分钟内让你明白正则表达式是什么,并对它有一些基本的了解,让你 ...

  8. Tsung安装与使用

    Tsung安装与使用 Tsung安装与使用的详细说明,包括测试场景的脚本配置说明 Ray 2013/11/11   目录 安装tsung Tsung运行环境安装... Tsung安装... 使用Tsu ...

  9. CentOS 安装Zookeeper-3.4.6 单节点

    Dubbo 建议使用 Zookeeper 作为服务的注册中心. 注册中心服务器(192.168.3.71)配置,安装 Zookeeper: 1. 修改操作系统的/etc/hosts 文件中添加: #  ...

  10. SQL Server T-SQL高级查询

    name like 'ja%'; select * from student where name not like '%[j,n]%'; select * from student where na ...