Monday, November 8, 2010
Friday, November 5, 2010
Show or hide file extensions
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
-
Reference in the manifest does not match the identity of the downloaded assembly
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.
Bitmaps in WPF, disposing of bitmaps in WPF and other issues
Imagecontrol.Image.Source = I
BitmapImage bi = new BitmapImage();
bi.BeginInit();
bi.UriSource = new Uri(@"C:\Users\Public\Pictures\Sample Pictures\Penguins.bmp", UriKind.Absolute);
bi.EndInit();
Imagecontrol.Image.Source = bi;
Imagecontrol.Image.Source = LoadImage(@"C:\Users\Public\Pictures\Sample Pictures\Penguins.bmp");
{
BitmapImage myRetVal = null;
{
BitmapImage image = new BitmapImage();
{
image.BeginInit();
image.CacheOption = BitmapCacheOption.OnLoad;
image.StreamSource = stream;
image.EndInit();
}
}
}