Form1控件 一个显示路径的TextBox:txt_ExcelPath两个按钮 Button:btn_selectpath,btn_savedata一个backgroundWorker1组件 /// /// 选择Excel文件 /// /// ...
其原理是,利用winfrom模拟表单提交数据,将要提交的参数提交给网页,网页执行代码,得到数据,然后Winform程序将网页的所有源代码读取下来,这样就达到windows应用程序和web应用程序之间传参和现实数据的效果了。
首先创建一个windows应用程序和web应用程序。
在web应用程序中,将网页切换到源代码并把源代码中一些没用的代码删掉,只保留头部,在w...
System.Timers.Timer pTimer = new System.Timers.Timer(10000);//每隔5秒执行一次,没用winfrom自带的 pTimer.Elapsed += Button1;//委托,要执行的方法 ...
分类:
Web程序 时间:
2015-07-08 12:34:27
阅读次数:
186
往往当单元格的内容过多时,显示会变成这样后缀多了几个点来显示数据未完,当鼠标移到某个单元格时,单元格里的内容会全部显示。今天偶然发现了一个可以修改提示信息的方法,所以先记下来。这个方法,可以对于不同的单元格,显示不同的内容,如下,
using System;using System.Data;using System.Drawing;using System.Windows.Forms;using Yanwen.Logistics.Business.Logics;using Yanwen.Logistics.Business....
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSys...
分类:
数据库 时间:
2015-07-03 18:58:31
阅读次数:
137
dataGridView右键菜单并选中该行程序代码:private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { if (e.Button =...
1、Winfrom项目经常会使用到消息提示,一般都使用MessageBox.Show方法,但是像错误提示,询问提示,警告提示写起来就有点复杂了,并且后面几种提示都带有图标,但是MessageBox.Show没有图标,会影响项目的一致性。所以封装了一个常用的消息提示类MessageCommon ...
Winfrom中ListBox绑定List数据源更新问题摘自:http://xiaocai.info/2010/09/winform-listbox-datasource-update/Winfrom中ListBox绑定List数据源,第一次可以成功,但后面List更新以后,ListBox并没有更新...
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...