08 2018 档案

摘要:一.绑定下拉框数据 string sql = "select * from Grade"; SqlDataAdapter sda = new SqlDataAdapter(sql,helper.Con); sda.Fill(ds,"Grade"); //新建一个下拉框选项 DataRow row = 阅读全文
posted @ 2018-08-11 08:24 天戈 阅读(256) 评论(0) 推荐(0) 编辑
摘要:一.枚举 枚举是一组描述性的名称 定义一组有限的值,不能包含方法 对可能的值进行约束 1.定义枚举类 public enum Gender { Male,Female } 2.使用枚举表示整数值 public enum Gender { Male=1, Female=0 } Console.Writ 阅读全文
posted @ 2018-08-09 08:19 天戈 阅读(121) 评论(0) 推荐(0) 编辑
摘要:一.ImageList:存储图像集合 Images 存储的所有图像 ImageSize 图像的大小 ColorDepth 颜色数 TransparentColor 被视为透明的颜色 先设置ColorDepth、ImageSize属性值再添加图片,反之不能更改这两个属性值 二.ListView:存储项 阅读全文
posted @ 2018-08-07 08:28 天戈 阅读(190) 评论(0) 推荐(0) 编辑
摘要:一.Application.Exit()和this.Close()的区别 Application.Exit() 1.应用程序类Application的静态方法,用于退出当前应用程序 2.如果当前应用程序打开了多个窗体,则关闭所有窗体 3.当关闭窗体时,不会触发窗体的FromClising和FormC 阅读全文
posted @ 2018-08-06 08:24 天戈 阅读(174) 评论(0) 推荐(0) 编辑
摘要:一.窗体的属性 1.背景颜色:BackColor 2.背景图片:BackGroundImage 3.设置窗体标题:Text 4.窗体图标:icon 5.设置窗体更改大小:Formboderstyle 6.设置窗体显示位置:StartPosition 7.设置背景图像平铺方式:BackGroundIm 阅读全文
posted @ 2018-08-04 08:29 天戈 阅读(239) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示