Processing math: 100%

随笔分类 -  C#

vs2012+ winform+.net4.0发布如何在xp上运行
摘要:今天在英文版vs2013打包发布4.0(非4.0 client)的winform时,遇到了在xp上无法运行的情况,.net framework 4.0在xp上已安装。在打包前,winform工程,即菜单中的Project下的工程属性里,Application选项中的Target framework... 阅读全文

posted @ 2015-04-26 21:28 jec 阅读(756) 评论(0) 推荐(0) 编辑

C#创建excel并释放资源
摘要:using System;using Microsoft.Office.Interop.Excel;using Excel = Microsoft.Office.Interop.Excel;using System.IO;using System.Windows.Forms;using System... 阅读全文

posted @ 2014-10-24 00:08 jec 阅读(616) 评论(0) 推荐(0) 编辑

正则表达式中的替代
摘要:替换是只能在替换模式中识别的语言元素。 它们使用正则表达式模式定义全部或部分用于替换输入字符串中的匹配文本的文本。 替换模式可以包含一个或多个替换以及本文字符 替换 说明 numbernumber{ name } 包括... 阅读全文

posted @ 2014-10-19 20:06 jec 阅读(796) 评论(0) 推荐(0) 编辑

winform消息提示框
摘要:摘自:http://www.cnblogs.com/risen/archive/2008/01/15/1039751.htmlpublic partial class AlertForm : Form { /* * 在类AlertForm定义的下方, * 我们创建用于显示的字符串和其颜色的变量, *... 阅读全文

posted @ 2014-05-11 18:25 jec 阅读(3801) 评论(0) 推荐(0) 编辑

winform 实现两个datagridview之间的数据联动
摘要:再做数据库开发的时候,经常会遇到表带上明细表,比如,一个学校有好多系,每个系又有好多专业...。在winform中,都会使用datagridview来显示数据,现在就来说说如何实现之间的联动。比如现在有两张表,而child中的id是参照parent表中的id。先新建一个DataSet.xsd文件,将parent和child表添加进来。如果在数据中已经添加了外键,则vs会自动生成,如果没加,可以自己建立,新建一个窗口,放两个datagridview,以及DataSet,和childTableAdapter和parentTableAdapter对象。设置parent的DataSource为data 阅读全文

posted @ 2014-04-11 21:12 jec 阅读(2535) 评论(0) 推荐(0) 编辑

C#DateTimeFormatInfo类
摘要:CultureInfo类格式列表DateTimeFormatInfo类格式列表 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 DateTime dt = DateTime.Now; 6 DateTimeFormatInfo dfi = new DateTimeFormatInfo(); 7 CultureInfo ci = new CultureInfo("nl-BE"); 8 9 /... 阅读全文

posted @ 2013-12-14 00:49 jec 阅读(3384) 评论(0) 推荐(0) 编辑

C#NumberFormatInfo类
摘要:1 class Program 2 { 3 static void Main(string[] args) 4 { 5 //retrieve current culture info by cloning it so that 6 //we can manipulate its NumberFormat member 7 CultureInfo ci = Thread.CurrentThread.CurrentCulture.Clone() as CultureInfo; 8 ... 阅读全文

posted @ 2013-12-13 23:41 jec 阅读(832) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 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 1
2 3 4 5 6 7 8

导航

统计

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