[Mono-bugs] [Bug 480297] "Unhandled Exception: System.InvalidOperationException: Visual Styles are not enabled" on program startup
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Mar 4 11:45:57 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=480297
User jpobst at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=480297#c1
Jonathan Pobst <jpobst at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |CLOSED
CC| |jpobst at novell.com
Resolution| |INVALID
--- Comment #1 from Jonathan Pobst <jpobst at novell.com> 2009-03-04 09:45:56 MST ---
VisualStyles are not supported on all operating systems, including Linux. Your
code would also crash on Windows 2000, ME, and 98, as well as XP/2003 systems
with themes turned off.
You have to check Application.RenderWithVisualStyles before using the
VisualStyles namespace.
(http://msdn.microsoft.com/en-us/library/system.windows.forms.application.renderwithvisualstyles.aspx)
If it returns false, you have to provide a backup painting mechanism that does
not use VisualStyles.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list