随笔 - 438  文章 - 2  评论 - 10  阅读 - 43万

随笔分类 -  WinForm

Winfrom 重新登录
摘要:private void ReLogin_Click(object sender, EventArgs e) { ///实例化一个进程 Process process = new Process(); ///设置进程的... 阅读全文
posted @ 2015-11-17 00:18 记性特差 阅读(276) 评论(0) 推荐(0) 编辑
Winfrom 屏蔽Alt+F4
摘要:/// /// 屏蔽Alt+F4 /// /// 要处理的 Windows protected override void WndProc(ref Message m) { const ... 阅读全文
posted @ 2015-11-17 00:16 记性特差 阅读(300) 评论(0) 推荐(0) 编辑
winfrom 操作PPT
摘要:///winfrom 操作PPT using System; using System.Collections.Generic; using System.Linq; using System.Text; using OFFICECORE = Microsoft.Office.Core; usin... 阅读全文
posted @ 2015-11-17 00:15 记性特差 阅读(428) 评论(0) 推荐(0) 编辑
[Winform]DataGridView列自适应宽度
摘要:引言在做winform项目中,数据控件DataGridView的使用多多少少是会用到的,如果不设置它的属性,默认情况下是不会自适应宽度的,你想查看某项的数据,就不得不将标题栏拖来拖去,挺烦的。方法建一个用于测试的Person类1 public class Person2 {3 ... 阅读全文
posted @ 2014-11-10 10:12 记性特差 阅读(433) 评论(0) 推荐(0) 编辑
巧用Webbrowser实现网络数据采集
摘要:在上一篇文章:《巧用C# webbrowser实现动态网页爬虫机器人》中,给出了一个综合利用webbrowser控件,MSHTML DOM,正则表达式,以及线程阻塞技术爬取动态网页链接的框架和方法。(注:所谓动态网页是指:目标网页的URL不能从当前网页中直接获得,而是要依赖JavaScript重新定... 阅读全文
posted @ 2014-09-28 14:50 记性特差 编辑
WinForm导出文件
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows.Forms; 6 using System.Threading; ... 阅读全文
posted @ 2014-08-26 11:06 记性特差 编辑
用递归方法实现读取文件夹下所有文件信息
摘要:要实现读取文件夹下所有文件信息,其实只要用个递归方法就可以简单实现了下面为自定义的一个类其中的showEveryFile方法就是为读取给定文件夹下每一个文件using System; using System.Collections.Generic; using System.Text; using... 阅读全文
posted @ 2014-08-22 10:14 记性特差 阅读(1050) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

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