Archive for November, 2010

How can I restart WPF application?? – Stack Overflow

RestartIf there is a possibility to directly restart the app, I dont know. What you can try is to use App.Current.Shutdown to close the app and start a new instance through System.Diagnostics.Process.Start where the path to the app can be taken from System.Reflection.Assembly.GetEntryAssembly. `.

via How can I restart WPF application?? – Stack Overflow.

Type Conversion and Conversion Operators in C# | C# Help – C# Tutorials and Resources

public static implicit operator int(SomeType typ)

{

// code to convert from SomeType to int

}

via Type Conversion and Conversion Operators in C# | C# Help – C# Tutorials and Resources.

Publish To WordPress From Microsoft Word 2007 | Samanathon.com

Publish To WordPress From Microsoft Word 2007 | Samanathon.com.

How To Use Google Search More Effectively

How To Use Google Search More Effectively.

Shortcuts for code snippets that I use everyday coding

I note down here to share my daily-used code snippets in Visual Studio 2010.
Each entry is applied by typing the snippet’s shortcut followed by `tab` key. Then, you can `tab` to navigate around the change-able values of the snippet.

  1. prop
    New property in short mode, i.e. { get; set;  }
  2. propfull
    New property in full mode
  3. for
    Insert simple for loop
  4. (More to be updated when available)

Nam.

Wait for BackgroundWorker to complete

Wait for BackgroundWorker to complete.

Con heo và con lợn khác nhau như thế nào?

Trả lời: Con heo ăn bắp còn con lợn ăn ngô!

Enjoy!