daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页

2012年10月9日

摘要: 今天做程序的时候用到AxInterop.VPIClient.dll,运行到这个包中的方法 InitEnd的时候,就提示经过查询有两个说法:一个是DLL需要注册,二是程序额运行环境32位和64位的问题。第二种说法在我这个情况下,不适合,于是采用regsvr32 AxInterop.VPIClient.dll结果提示:查询了很多,也没有找到好的方法,用win7管理员模式也不可以的。最后通过和同事交流,需要注册 ocx 文件regsvr32 E:\CATI3\Source\ThirdParty\VPIClient.ocx果然就好用了。 阅读全文
posted @ 2012-10-09 17:54 daixinet.com 阅读(526) 评论(2) 推荐(0) 编辑

2012年9月12日

摘要: 最近看一个帖子,做不规则按钮,写的非常好。超链接:http://blog.csdn.net/cmis7645/article/details/7592372#comments效果图:代码:View Code 代码不是很难理解,关键是P... 阅读全文
posted @ 2012-09-12 11:05 daixinet.com 阅读(11385) 评论(6) 推荐(4) 编辑

2012年9月11日

摘要: 效果图:用于提示用户的输入代码:Code 阅读全文
posted @ 2012-09-11 11:21 daixinet.com 阅读(2131) 评论(0) 推荐(0) 编辑

2012年9月6日

摘要: 把图片生成资源,怎么在后台访问困扰了我几天,在网上也查了很多例子,各种说法都有如:m_Image.Source = new BitmapImage(new Uri(@"Resources/Images/more.png", UriKind.Relative));但是在实际进行过程中,访问不到。经过测试,很简单就能访问到了:Code:m_Image.Source = new BitmapImage(new Uri("Images/more.png", UriKind.Relative));上两级文件夹:m_Image.Source = new Bitmap 阅读全文
posted @ 2012-09-06 09:35 daixinet.com 阅读(3088) 评论(0) 推荐(0) 编辑

2012年9月3日

摘要: WPF界面,一次加载十万个按钮需要大概45S,程序完全卡住。分批加载是一个好方法。图片:下载:Code 阅读全文
posted @ 2012-09-03 12:14 daixinet.com 阅读(472) 评论(0) 推荐(0) 编辑

摘要: 图片:源码:Code 阅读全文
posted @ 2012-09-03 09:36 daixinet.com 阅读(568) 评论(0) 推荐(0) 编辑

2012年8月29日

摘要: WPF调用WinForm中的 OpenFileDialog 和 FolderBrowserDialog 来实现响应的功能 OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Title = "选择文件"; openFileDialog.Filter = "zip文件|*.zip|rar文件|*.rar|所有文件|*.*"; openFileDialog.FileName = string.Empty; openFileDi... 阅读全文
posted @ 2012-08-29 15:57 daixinet.com 阅读(16211) 评论(0) 推荐(1) 编辑

摘要: 效果图: 关键代码:类型判断 if (rIndex == 1) { cell.CellValue = new CellValue(item.ToString()); } else if (rIndex == 2) { cell.CellValue = new C... 阅读全文
posted @ 2012-08-29 10:54 daixinet.com 阅读(789) 评论(0) 推荐(0) 编辑

2012年8月28日

摘要: 用foreach遍历二维数组 static void Main(string[] args) { object[,] dataArray = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; int count = 0; foreach (object item in dataArray) { Console.Write(item); Console.Write(" "... 阅读全文
posted @ 2012-08-28 15:34 daixinet.com 阅读(6148) 评论(0) 推荐(0) 编辑

摘要: 创建Excel private static void CreateSpreadSheet() { string fileName = "E:\\01.xlsx"; string sheetName = "test"; using (SpreadsheetDocument spreadSheet = SpreadsheetDocument.Create(fileName, SpreadsheetDocumentType.Workbook)) { //... 阅读全文
posted @ 2012-08-28 13:53 daixinet.com 阅读(1686) 评论(0) 推荐(0) 编辑

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页