1. Add playlist address to player
Player.Playlist.Add(new PlaylistItem { MediaSource = new Uri("http://smf.vertigo.com/videos/wildlife.wmv") });
2. Silverlight.js file from http://www.itscodingtime.com/post/The-Silverlightjs-file.aspx
Silverlight.js is a JavaScript helper file used when adding a Silverlight application to a web page via JavaScript. Itdefines a number of methods to help with this, most importantlycreateObject and createObjectEx. Other notable functions and event handlers include:
getSilverlightisBrowserRestartRequiredisInstalledonGetSilverlightonSilverlightInstalledWaitForInstallCompletionThe Silverlight.js file is installed along with the Silverlight 2 SDK (which is part of theSilverlight Tools for Visual Studio 2008 SP1 install). By default, you will find the Silverlight.js file at "C:/Program Files/Microsoft SDKs/Silverlight/v2.0/Tools".
3. Debug tool
using System.Diagnostics;
Debug.WriteLine("Debug Information-Product Starting ");
4. ipconfig flushdns http://hi.baidu.com/%BE%A9%B3%C7%E9%D9%D7%D3/blog/item/f0404d860b227027c75cc351.html
5. cant find reference go to project property/application/change .Net Framework Client Profile to .Net Framework
6. Application.Exit() exit from winform
Enviroment.Exit(0) exit from both wpf and winform
7. Regsvr32 Dos 注册
8. 显示console window: System.Console.ReadLine();