摘要: 先看看效果吧: 1 150 151 152 153 154 155 156 157 158 159 160 161 162 163 ... 阅读全文
posted @ 2007-03-12 09:06 Dragon-China 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 1. 进度条模板文件 ProgressBar.htm 1 2 3 4 28 29 30 正在加载31 32 33 34 35 2. Default.aspx 1 protected void Page_Load(object sender, EventArgs e) 2 { 3 // 根据 ProgressBar.htm 显示进度条界面 4 ... 阅读全文
posted @ 2007-03-12 09:05 Dragon-China 阅读(712) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Security.Principal;using System.Runtime.InteropServices;public class Impersonate{ #region 模拟 private WindowsImpers... 阅读全文
posted @ 2007-03-12 09:04 Dragon-China 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 单线程程序避免界面假死: 1) 使用 void Application.DoEvents(); 处理当前在消息队列中的所有 Windows 消息。 2) 使用 void Control.Refresh(); 强制控件使其工作区无效并立即重绘自己和任何子控件。Control 可以是 Form,也可以是 Form 上控件。3) void Control.Update(); ... 阅读全文
posted @ 2007-03-12 08:58 Dragon-China 阅读(1786) 评论(0) 推荐(0) 编辑
摘要: 需要在DataGridView的2个事件中写代码!下面的代码把第4列设置为密码列(显示为*号): /// /// 单元格显示格式事件 /// /// /// private void dataGridView1_CellFormatting(object sender, DataGridViewCel... 阅读全文
posted @ 2007-03-12 08:56 Dragon-China 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/anjou/archive/2007/03/07/667253.html 在.NET中通过程序填写和提交表单还是比较简单。比如,要提交一个如下图所示的登录表单: 填写和提交以上表单的代码如下: // 要提交表单的URI字符串。 string uriString = "http://www.xxx.co... 阅读全文
posted @ 2007-03-12 08:53 Dragon-China 阅读(859) 评论(0) 推荐(0) 编辑