Error on Windows XP

Topics: Developer Forum
Sep 30, 2010 at 5:50 PM


When i run the proyect on visual studio 2010 and windows xp, this errors happen:

Unable to find an entry point named 'SetWindowThemeAttribute' in DLL 'uxtheme.dll'.


How can i fix it?

Oct 6, 2010 at 9:16 AM

Can't be fixed: Aero doesn't exist on Windows XP. The library only works on Windows Vista/7. You can check at runtime whether you are running on a supported platform or not (and thus decide to use components from Windows Forms Aero): check out the OsSupport class.