Monthly Archives: May 2012

How to enable Wifi in Windows Server 8 Beta

1. Click Add Roles and Features 2. Click Next. 3. Select Wireless LAN Service. Advertisements

Posted in .Net | Tagged , | 2 Comments

How to use OpenFileDialog in WPF

There is no OpenFileDialog control in WPF. You have to code to get the dialog. The following example open a file dialog and looking for default extension vhd. privatevoid btnOpenFile_Click(object sender, RoutedEventArgs e) {   // Configure open file dialog … Continue reading

Posted in .Net | Tagged , | Leave a comment

Face tracking with Kinect SDK 1.5

Many users out there have been asking how to do face tracking in Xbox Kinect or Windows Kinect. Download the Kinect SDK 1.5 and Kinect Toolkit. You must download the Toolkit because the face tracking sample is in the Toolkit. … Continue reading

Posted in .Net | Tagged , | Leave a comment

Choose a folder using FolderBrowseDialog in WPF

To select folder in WPF is not a control in Toolbox. You can do it with following code. privatevoid btnFolder_Click(object sender, RoutedEventArgs e) {   var dialog = new System.Windows.Forms.FolderBrowserDialog();   System.Windows.Forms.DialogResult result = dialog.ShowDialog();     txtXML.Text = dialog.SelectedPath; … Continue reading

Posted in .Net | Tagged , , | Leave a comment

How to put double quote (“) in C# string

I am not too sure how other do it but I use @”””” and It works. Try this. staticvoid Main(string[] args) {   string strrun = @”””” + “Hello” + @””””;     Console.WriteLine(strrun); }   You can also download … Continue reading

Posted in .Net | Tagged , | Leave a comment

How to install Windows Server 8 video drive for Lenovo T400

Do not waste your time to download drive from Lenovo web site, it just doesn’t work. I download the Vista driver from here: http://www.pcpitstop.com/drivers/download/ATI~Radeon~HD~3400~Series~.html and it works. I keep a copy of that like me know if you have a … Continue reading

Posted in .Net | Tagged , | 2 Comments

Create Open File Dialog in WPF

1. Create a WPF Project. 2. Add TextBox control named textBox1. 3. Add a Button control named btnOpenFile, text Open Image. 4. Double the button and add the code. 5. Paste the below code. privatevoid button1_Click(object sender, RoutedEventArgs e) { … Continue reading

Posted in .Net | Tagged | Leave a comment