2013年6月2日
摘要: 不去面试不知道自己有很多基本的东西不清楚啊 阅读全文
posted @ 2013-06-02 12:31 pdfw 阅读(172) 评论(0) 推荐(0) 编辑
  2012年3月1日
摘要: 发送窗口的代码using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.W 阅读全文
posted @ 2012-03-01 16:41 pdfw 阅读(843) 评论(0) 推荐(0) 编辑
  2011年6月20日
摘要: 打开Visual Studio Tools-> Visual Studio 2008 Command Prompt.运行下面3条命令就可以了。1. devenv/resetskippkgs2. devenv /resetsettings 3. devenv /setup不一定要3条命令都运行才能解决问题,也可能只运行一条就可以了。 阅读全文
posted @ 2011-06-20 10:41 pdfw 阅读(264) 评论(0) 推荐(0) 编辑
  2010年12月24日
摘要: 1. 根据节点属性查找:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--varflexXML:XML=RIAFlashPlayerFlashversion="9"FlashCS3/FlashFlashversion="8"Flash8/FlashFlashversion="7"Flash2004MX/FlashFlexFlex3/Flex/FlashPlayerAjaxGoogleAjaxGo 阅读全文
posted @ 2010-12-24 17:53 pdfw 阅读(2033) 评论(0) 推荐(0) 编辑
  2010年2月10日
摘要: 可以使用FileSystemWatcher类来监视文件或者文件夹的变化。下面的代码可以用来监视重命名的行为。 FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = @"C:\MyDirectory"; watcher.Renamed += new RenamedEventHandler(watcher_Renamed... 阅读全文
posted @ 2010-02-10 17:32 pdfw 阅读(3815) 评论(0) 推荐(0) 编辑
  2009年12月16日
摘要: 以前比较孤陋寡闻,今天才知道德语中小数点是显示为","的,例如1.5在德文中应该显示为1,5。如果要在德文下面正确显示要象下面这样写才对。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->NumberFormatInfonumberInfo=CultureInfo.CurrentCulture.NumberFormat;doublemyAmount=1.5;MessageBox.Show(myAmount.ToString( 阅读全文
posted @ 2009-12-16 17:52 pdfw 阅读(270) 评论(0) 推荐(0) 编辑
  2009年10月7日
摘要: 今天看个例子程序,程序里面的数据库连接字符串如下:Data Source=localhost;Initial Catalog=Store;User Id=sa;Password=password运行程序以后发现连接不到数据库。上网查了查,发现了问题的原因:我使用的数据库是SQL Server Express,在SQL Server Express中连接字符串应该如下:Data Source=server\SQLEXPRESS;Initial Catalog=Store;User Id=sa;Password=password 其中server是计算机名。使用Windows登陆的帐户,则为:Da 阅读全文
posted @ 2009-10-07 20:06 pdfw 阅读(1116) 评论(0) 推荐(0) 编辑
  2009年9月23日
摘要: CreatingTheGlassButton.zip 阅读全文
posted @ 2009-09-23 11:22 pdfw 阅读(2324) 评论(1) 推荐(0) 编辑
  2009年9月7日
摘要: 我们可以用下面的xaml代码画一个三角形[代码]下面的xaml代码会画一个和上面代码相同的三角形[代码]第二段代码里面Data属性的值就是用Mini-Language定义的。下面是Geometry Mini-Language的命令说明Command           DescriptionF                  value Sets the Geometry.FillRule pr... 阅读全文
posted @ 2009-09-07 18:24 pdfw 阅读(2872) 评论(0) 推荐(0) 编辑
  2009年7月8日
摘要: 当进行一些耗时的操作的时候,让UI所在的主线程进行处理,是不合适的,因为这样会使UI在操作的过程中停止响应。这时候需要使用多线程的方法进行处理。但是有一个问题就是一般情况下不能对UI控件进行跨线程的操作,下面是对这个问题的解决办法。1、WinForm程序中a、第一种方法是使用BackgroundWorker控件,实例代码如下。BackgroundWorker Demob、 使用Thread/Thr... 阅读全文
posted @ 2009-07-08 11:25 pdfw 阅读(1954) 评论(0) 推荐(0) 编辑