1、跨线程访问控件委托和类的定义using System;using System.Windows.Forms;namespace ahwildlife.Utils{ /// /// 跨线程访问控件的委托 /// public delegate void InvokeDe...
分类:
编程语言 时间:
2014-10-13 17:51:49
阅读次数:
159
本文转载:http://www.cnblogs.com/VincentLuo/archive/2008/03/29/1128987.html在汪洋怡舟的这篇文章中【http://www.cnblogs.com/longren629/archive/2007/03/14/674633.html】只使用...
在网页中通过div+css实现半透明效果不难,今天我们看看一种在winfrom中实现的方法:效果图如下,正常时:显示遮罩层时:自定义遮罩层控件的源码如下:View Row Code1using System;2using System.Drawing;3using System.Windows...
分类:
Windows程序 时间:
2014-10-09 13:42:23
阅读次数:
1028
编写一个个人信息二维码:首先先下载一个生成二维码的ThoughtWorks.QRCode.dll(注:下载后将其添加引用到项目中即可)然后设计一个窗体:using System;using System.Collections.Generic;using System.ComponentModel;...
1.添加安装向导项目打开文件系统界面,选择应用程序文件夹。在右侧右击->添加->文件,把程序需要的文件都添加进来。2.右击程序集->创建快捷方式。右击快捷方式->属性窗口->Icon选择应用程序文件夹中的.ico文件。这样就创建了快捷方式和快捷方式的图标。3.选择->用户的“程序”菜单->在右侧右击...
本文转载:http://www.cnblogs.com/LoveJenny/archive/2013/03/13/2956922.html看到try,finally ,有没有让你想到什么呢?,对了using 可以生成try-finallypublic class WaitCursor : IDisp...
最近研究微信公众平台,搭建了一个微信聊天机器人,调用小黄鸡的公众接口,实现在线和小黄鸡聊天的功能。接口调用不是很麻烦,不过是php版本,所以研究了一下C#的功能模块,Winfrom版后台界面代码为 1 using System; 2 using System.Collections.Generi.....
WebRequest request = WebRequest.Create("http://1.bjapp.sinaapp.com/play.php?a=" + PageUrl); WebResponse response = request.GetR...
省市联动 private void biands() { string sql = "select AreaId, AreaName from TblArea where AreaPId=0"; SqlDataReader dr = SqlH...
private void dgdv_skjs_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex != -1) { ...