码迷,mamicode.com
首页 >  
搜索关键字:winfrom    ( 346个结果
C# WinFrom 导入Excel文件,显示进度条
Form1控件 一个显示路径的TextBox:txt_ExcelPath两个按钮 Button:btn_selectpath,btn_savedata一个backgroundWorker1组件 /// /// 选择Excel文件 /// /// ...
分类:Windows程序   时间:2015-07-08 18:33:06    阅读次数:178
C# Winform利用POST传值方式模拟表单提交数据(Winform与网页交互)
其原理是,利用winfrom模拟表单提交数据,将要提交的参数提交给网页,网页执行代码,得到数据,然后Winform程序将网页的所有源代码读取下来,这样就达到windows应用程序和web应用程序之间传参和现实数据的效果了。 ­     首先创建一个windows应用程序和web应用程序。 ­     在web应用程序中,将网页切换到源代码并把源代码中一些没用的代码删掉,只保留头部,在w...
分类:Windows程序   时间:2015-07-08 16:37:36    阅读次数:161
.net 定时器 定时执行某个方法
System.Timers.Timer pTimer = new System.Timers.Timer(10000);//每隔5秒执行一次,没用winfrom自带的 pTimer.Elapsed += Button1;//委托,要执行的方法 ...
分类:Web程序   时间:2015-07-08 12:34:27    阅读次数:186
Winfrom DataGridView单元格的提示信息
往往当单元格的内容过多时,显示会变成这样后缀多了几个点来显示数据未完,当鼠标移到某个单元格时,单元格里的内容会全部显示。今天偶然发现了一个可以修改提示信息的方法,所以先记下来。这个方法,可以对于不同的单元格,显示不同的内容,如下,
分类:Windows程序   时间:2015-07-08 12:33:33    阅读次数:136
Winfrom DataGridView添加列头checkbox
using System;using System.Data;using System.Drawing;using System.Windows.Forms;using Yanwen.Logistics.Business.Logics;using Yanwen.Logistics.Business....
分类:Windows程序   时间:2015-07-07 16:29:15    阅读次数:154
WINFrom Excal 数据导入数据库
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSys...
分类:数据库   时间:2015-07-03 18:58:31    阅读次数:137
WinFrom - DataGridView控件右键选中记录并弹出菜单
dataGridView右键菜单并选中该行程序代码:private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { if (e.Button =...
分类:Windows程序   时间:2015-07-01 15:55:12    阅读次数:137
Winfrom 提示消息框公共类
1、Winfrom项目经常会使用到消息提示,一般都使用MessageBox.Show方法,但是像错误提示,询问提示,警告提示写起来就有点复杂了,并且后面几种提示都带有图标,但是MessageBox.Show没有图标,会影响项目的一致性。所以封装了一个常用的消息提示类MessageCommon ...
分类:Windows程序   时间:2015-06-23 23:09:14    阅读次数:281
Winfrom中ListBox绑定List数据源更新问题
Winfrom中ListBox绑定List数据源更新问题摘自:http://xiaocai.info/2010/09/winform-listbox-datasource-update/Winfrom中ListBox绑定List数据源,第一次可以成功,但后面List更新以后,ListBox并没有更新...
分类:Windows程序   时间:2015-06-20 18:23:37    阅读次数:130
winfrom 从网页中通过源代码截取文章
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:Windows程序   时间:2015-06-19 10:17:37    阅读次数:177
346条   上一页 1 ... 22 23 24 25 26 ... 35 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!