.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Vista Icons

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :Windows Application
I have written a windows forms .net application which creates, edits, and converts bitmaps to icons. However, the finished icons look pixelated and sometimes change colors to grayscale (even though the icons properties say it's 32-bit, just like the other icons on my system). I think the problem is that I have Vista, and the code is creating xp icons or something. I hear that vista and 7 icons are significantly different, so I was wondering how to create these vista icons in Visual Studio. Here's my code (it runs when the user clicks a button): Image^ pictureBoxImage = pictureBox1->Image; Bitmap^ bmp = gcnew Bitmap(pictureBoxImage); System::Drawing::Icon^ icon = Icon->FromHandle(bitmap->GetHicon()); FileStream^ imageFile = File::Create(textBox2->Text); icon->Save(imageFile); By the way, although I use C++ I can understand C# and VB code, so feel free to give me code samples in those languages.

View Complete Post

More Related Resource Links

Windows with C++: Decoding Windows Vista Icons with WIC


In this month's installment, Kenny Kerr sings the praises of the new Visual C++ 2008 Feature Pack, which brings modern conveniences to Visual C++.

Kenny Kerr

MSDN Magazine June 2008

.NET Matters: IFileOperation in Windows Vista


The author creates a managed wrapper to use the new IFileOperations interface in Windows Vista from managed code.

Stephen Toub

MSDN Magazine December 2007

Gadgets: Build Your Own Windows Vista Sidebar Gadget


A Sidebar gadget is a powerful little too that's surprisingly easy to create. Get in on the fun with Donavon West.

Donavon West

MSDN Magazine August 2007

Windows with C++: Windows Vista Control Enhancements


With the release of Windows Vista, C++ developers will be happy to know there's plenty of magic left to perform. This new column will provide the necessary insight.

Kenny Kerr

MSDN Magazine August 2007

Security: Applying Cryptography Using The CNG API In Windows Vista


Cryptography Next Generation (CNG) is meant to be a long-term replacement for the CryptoAPI, providing replacements for all of the cryptographic primitives it offered.

Kenny Kerr

MSDN Magazine July 2007

CONCURRENCY: Synchronization Primitives New To Windows Vista


Windows Vista has lots of goodies for native C++ developers including condition variables, slim reader/writer locks, and one-time initialization.

Robert Saccone and Alexander Taskov

MSDN Magazine June 2007

Least Privilege: Teach Your Apps To Play Nicely With Windows Vista User Account Control


User Account Control in Windows Vista keeps the OS safe from intentional and accidental configuration changes.

Chris Corio

MSDN Magazine January 2007

Vista and Office: View Data Your Way With Our Managed Preview Handler Framework


Stephen Toub shows you how to write your own Preview handlers for Windows Vista and Outlook 2007.

Stephen Toub

MSDN Magazine January 2007

Desktop Security: Create Custom Login Experiences With Credential Providers For Windows Vista


Why is a change to the Windows logon plug-in interface so exciting? Because with credential providers you can customize the logon experience for your users.

Dan Griffin

MSDN Magazine January 2007

Editor's Note: A New Year-A New Vista


Josh Trupin revs the engine to get us all ready for Windows Vista.

Joshua Trupin

MSDN Magazine January 2007

Locale Hero: Enable Global Apps With Locale Builder And Windows Vista


Everything you need to know about locales in Windows Vista.

Kieran Snyder and Shawn Steele

MSDN Magazine December 2006

Smart Storage: Protect Your Data Via Managed Code And The Windows Vista Smart Card APIs


Smart cards are a compelling alternative to the reliance on passwords, which are the weakest link in authentication systems. Get the Windows smart card programming basics here.

Dan Griffin

MSDN Magazine November 2006

Peer To Peer: Harness The Power Of P2P Communication In Windows Vista And WCF


P2P applications face a number of barriers preventing their wide adoption as a productivity solution. Fortunately Windows Vista improves the situation, as you'll learn here.

Justin Smith

MSDN Magazine October 2006

CLR Inside Out: Windows Vista Globalization Features


Windows XP and the Microsoft .NET Framework both have APIs that support globalization. Windows VistaT will further extend globalization support by introducing several new features.

Shawn Steele

MSDN Magazine June 2006

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend