摘要: Repeater(重复器)有五个部分 (1)<AlternatingItemTemplate></AlternatingItemTemplate> 交替(2)<FooterTemplate></FooterTemplate>--脚部(3)<ItemTemplate></ItemTemplate>-- 阅读全文
posted @ 2016-10-16 21:11 冲天小肥牛 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 1、label。后台编译Span (1)ForeColor字体颜色 (2)设置label的Height,Width之前,必须先设置:Display=“inLine-block”; (3)Text:文本内容。 (4)visible:权限使用 (5)CssClass:使用的样式表 2、Literal。后 阅读全文
posted @ 2016-10-14 22:17 冲天小肥牛 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Winform是在客户电脑操作的。 WebForm是客户机通过一个IP地址,到IIs服务器,再进行信息反馈,在非客户机上操作的。 一、WebForm 运行流程(1)需要访问数据库(aspx) 客户机打开Ip地址,找到对应Ip地址的服务器,然后对IIs服务器进行请求,进行反馈,如果需要对数据库进行处理 阅读全文
posted @ 2016-10-14 07:43 冲天小肥牛 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 一、MDI窗体容器 MDi窗体是装Form的容器。平常Form(窗体)就是平常展示的最高级别,但是MDI比Form还高级。它可以让其它窗体在它的内部打开,无法超出它的范围 1 创建:将某个窗体的属性:IsMdiContainer设置为true 2 将Form放入MdI:窗体对象名.MdiParent 阅读全文
posted @ 2016-09-29 14:06 冲天小肥牛 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 一、无边框窗体1 最大化、最小化以及关闭按钮制作实际上就是更换点击前、指向时、点击时的图片 (1)将图片放在该文件夹的Debug中,获取图片的路径Application.StartupPath + "\\图片名.类型"(2)若是放在该文件夹的中,Application.StartupPath + " 阅读全文
posted @ 2016-09-29 08:38 冲天小肥牛 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 绝对路径=Application.StartupPath + "文件相对路径";(注意转义字符\\) 阅读全文
posted @ 2016-09-28 12:50 冲天小肥牛 阅读(109) 评论(0) 推荐(0) 编辑
摘要: //窗体移动API [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int IParam); public ... 阅读全文
posted @ 2016-09-28 12:47 冲天小肥牛 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 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; using System.Ru... 阅读全文
posted @ 2016-09-28 12:45 冲天小肥牛 阅读(2302) 评论(1) 推荐(0) 编辑
摘要: 一、进程 Pcocess 引用命名空间:using System.Diagnostics; 步骤: 二、线程 1 进程是主线程,线程去执行一段需要时间的代码,主线程不会被占用,程序就 不会出现假死状态了。 2 线程所在的命名空间:System.Threading; 3 Thread th = new 阅读全文
posted @ 2016-09-27 20:59 冲天小肥牛 阅读(188) 评论(0) 推荐(0) 编辑
摘要: //在form1的点击事件中 form2 f2=new form2(); f2.owner=this;//很重要 f2.show(); 阅读全文
posted @ 2016-09-27 16:26 冲天小肥牛 阅读(181) 评论(0) 推荐(0) 编辑