摘要:
不去面试不知道自己有很多基本的东西不清楚啊 阅读全文
摘要:
发送窗口的代码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 阅读全文
摘要:
打开Visual Studio Tools-> Visual Studio 2008 Command Prompt.运行下面3条命令就可以了。1. devenv/resetskippkgs2. devenv /resetsettings 3. devenv /setup不一定要3条命令都运行才能解决问题,也可能只运行一条就可以了。 阅读全文
摘要:
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 阅读全文
摘要:
可以使用FileSystemWatcher类来监视文件或者文件夹的变化。下面的代码可以用来监视重命名的行为。 FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = @"C:\MyDirectory"; watcher.Renamed += new RenamedEventHandler(watcher_Renamed... 阅读全文
摘要:
以前比较孤陋寡闻,今天才知道德语中小数点是显示为","的,例如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( 阅读全文
摘要:
今天看个例子程序,程序里面的数据库连接字符串如下: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 阅读全文
摘要:
CreatingTheGlassButton.zip 阅读全文
摘要:
我们可以用下面的xaml代码画一个三角形[代码]下面的xaml代码会画一个和上面代码相同的三角形[代码]第二段代码里面Data属性的值就是用Mini-Language定义的。下面是Geometry Mini-Language的命令说明Command DescriptionF value Sets the Geometry.FillRule pr... 阅读全文
摘要:
当进行一些耗时的操作的时候,让UI所在的主线程进行处理,是不合适的,因为这样会使UI在操作的过程中停止响应。这时候需要使用多线程的方法进行处理。但是有一个问题就是一般情况下不能对UI控件进行跨线程的操作,下面是对这个问题的解决办法。1、WinForm程序中a、第一种方法是使用BackgroundWorker控件,实例代码如下。BackgroundWorker Demob、 使用Thread/Thr... 阅读全文