2013年4月29日

第十五节 流程控制 五

摘要: 循环结构(while语句)while(循环条件){//循环体}计算1+2+3...+100的和。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace HE{ class Program { static void Main(string[] args) { int i = 1; int sum=0; while (i<= 100) { ... 阅读全文

posted @ 2013-04-29 19:11 杨柳清枫2012 阅读(118) 评论(0) 推荐(0)

2013年4月28日

第十四节 流程控制四

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace bianli{ class Program { static void Main(string[] args) { double y = Convert.ToDouble(Console.ReadLine()); int m = Convert.ToInt32(Console.ReadLine()); dou... 阅读全文

posted @ 2013-04-28 23:18 杨柳清枫2012 阅读(126) 评论(0) 推荐(0)

第十三节 流程控制 三

摘要: 输入一个数判断奇,偶数。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Jiou{ class Program { static void Main(string[] args) { int a; Console.WriteLine("请输入一个数"); a=Convert.ToInt32(Console.ReadLine()); i... 阅读全文

posted @ 2013-04-28 22:11 杨柳清枫2012 阅读(132) 评论(0) 推荐(0)

ListBox 控件

摘要: ListBox 控件 ListBox 控件又称列表框,它显示一个项目列表供用户选择。在列表框中,用户一次可以选择一项,也可以选择多项。 1、常用属性: (1) Items属性: 用于存放列表框中的列表项,是一个集合。通过该属性,可以添加列表项、移除列表项和获得列表项的数目。 (2)MultiColu... 阅读全文

posted @ 2013-04-28 11:30 杨柳清枫2012 阅读(578) 评论(0) 推荐(0)

CheckBox 控件

摘要: CheckBox 控件 CheckBox控件的常用属性如下。 (1)TextAlign属性:用来设置控件中文字的对齐方式,有9种选择,从上到下、从左至右分别是:ContentAlignment.TopLeft、ContentAlignment.TopCenter、 ContentAlignment.TopRight、ContentAlignment.MiddleLeft、ContentAlignment.MiddleCenter、 ContentAlignment.MiddleRightContentAlignment.BottomLeft、ContentAlignment.BottomCen 阅读全文

posted @ 2013-04-28 10:51 杨柳清枫2012 阅读(442) 评论(0) 推荐(0)

ProgressBar控件和 TrackBar控件

摘要: ProgressBar控件和 TrackBar控件 1.ProgressBar控件 ProgressBar 控件又称进度条控件,控件在水平栏中显示适当长度的矩形来指示进程的进度。当执行进程时,进度条用系统突出显示颜色在水平栏中从左向右进行填充。进程完成时,进度栏被填满。当某进程运行时间较长时,如果没... 阅读全文

posted @ 2013-04-28 10:14 杨柳清枫2012 阅读(468) 评论(0) 推荐(0)

HScrollBar 控件和 VScrollBar控件

摘要: HScrollBar 控件和 VScrollBar控件的使用 滚动条(ScrollBar)是大部分Windows应用程序中都具有的控件,是 Windows界面的 一种常见元素,通常分为水平(HscrollBar)和垂直滚动条(VscrollBar这两 个控件主要用于在应用程序或控件中水平或垂直滚动,... 阅读全文

posted @ 2013-04-28 10:08 杨柳清枫2012 阅读(793) 评论(0) 推荐(0)

C#用户自定义对话框

摘要: 用户自定义对话框 除了可以使用Windows自带的标准对话框外,用户还可以把自己设计的窗体定义成对话框。使用自定义对话框有以下几个要点。 (1)将窗体的FormBorderStyle属性值设置为FixedDialog。 (2)根据需要向窗体上添加控件。(3)使用窗体的ShowDialog方法显示窗体... 阅读全文

posted @ 2013-04-28 10:03 杨柳清枫2012 阅读(984) 评论(0) 推荐(0)

PrintDialog控件和PrintDocument 控件

摘要: PrintDialog控件和 PrintDocument 控件 PrintDialog。使用PrintDialog控件可以显示Windows标准的【打印】对话框,在该对话框中用户可以选择打印机、选择要打印的页及页码范围等。需要注意的是:该对话框并不负责具体的打印任务,要想在应用程序中控制打印内容必须... 阅读全文

posted @ 2013-04-28 10:00 杨柳清枫2012 阅读(397) 评论(0) 推荐(0)

ColorDialog控件

摘要: ColorDialog控件 ColorDialog 控件又称颜色对话框,主要用来弹出 Windows 中标准的【颜色】对话框。颜色对话框的作用是供用户选择一种颜色,并用 Color 属性记录用户选择- 18 - 的颜色值。下面介绍颜色对话框的主要属性。 (1)AllowFullOpen属性:用来获取... 阅读全文

posted @ 2013-04-28 09:51 杨柳清枫2012 阅读(430) 评论(0) 推荐(0)

导航