Monday, November 8, 2010
Friday, November 5, 2010
A file name extension is a set of characters added to the end of a file name that determine which program should open it. Follow these steps to choose whether Windows displays these file extensions.
Open Folder Options by clicking the Start button , clicking Control Panel, clicking Appearance and Personalization, and then clicking Folder Options.
Click the View tab, and then, under Advanced settings, do one of the following:
To hide file extensions, select the Hide extensions for known file types check box, and then click OK.
To display file extensions, clear the Hide extensions for known file types check box, and then click OK
I have test it with Visual Studio 2008 RTM, it works well now. The following steps are my test procedures.
1. Create a solution with two Windows Application projects, WinAppA and WinAppB.
2. Set WinAppA as publish project and add a reference to the WinAppB.
3. Open WinAppB properties window.
4. Click Signing tab, sign the ClickOnce manifests.
5. Click Security tab, enable the ClickOnce security settings.
6. Publish the WinAppA, publish well.
7. Test published WinAppA, it works well.
Imagecontrol.Image.Source = I
BitmapImage bi = new BitmapImage();
bi.UriSource = new Uri(@"C:\Users\Public\Pictures\Sample Pictures\Penguins.bmp", UriKind.Absolute);
Imagecontrol.Image.Source = bi;
Imagecontrol.Image.Source = LoadImage(@"C:\Users\Public\Pictures\Sample Pictures\Penguins.bmp");
BitmapImage myRetVal = null;
BitmapImage image = new BitmapImage();
image.CacheOption = BitmapCacheOption.OnLoad;
image.StreamSource = stream;