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.

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 , | 1 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

Install Active Directory Services in Windows Server 8 Beta

You are same as me, the people use dcpromo to install Active Directory Services. Unfortunately you can no longer do that in Windows Server 8 Beta. You will receive a message “The Active Directory Services installation Wizard is relocated in … Continue reading

Posted in .Net | Tagged , | 2 Comments

Install Microsoft Security Essential in Windows 8

Once you downloaded Microsoft Security Essential from http://www.microsoft.com/security/pc-security/mse.aspx. You will try to run mseinstall.exe. Unfortunately you will see the dialog pop up like the one below. Why is that? Because Virus scanner is part of the Windows Defender now.

Posted in Operating System | Tagged , | 1 Comment

Encrypt and decrypt data using Cryptography namespace

There is a fantastic example in codeproject  to   Encrypt and decrypt data using Cryptography namespace. Unfortunately I could not make the downloaded code worked. That is why I copy the code from the site and build a console application. 1. … Continue reading

Posted in .Net | Tagged , | Leave a comment