Geeks With Blogs


Add to Google

Tim Hibbard CEO for EnGraph software

I blogged a couple weeks ago about a SEHException we were getting in our Public Sub Main due to Application.EnableVisualStyles. Basically the solution was to insert an Application.DoEvents after the EnableVisualStyles call. Well, that has been working until today (which happens to be the day I have to demo this to our owner). So I made EnableVisualStyles an option in the application. So now the code looks like this:

   If AppOptions.EnableVisualStyles = True Then
   End If
   Application.Run(New frmMain)
Catch exSEH As System.Runtime.InteropServices.SEHException
   AppOptions.EnableVisualStyles = False
   MsgBox("Critical XP Styles Error" & Environment.NewLine & "Please reboot GPS Control Room", MsgBoxStyle.Critical)

Posted on Tuesday, April 12, 2005 6:18 PM | Back to top

Comments on this post: More on SEHException

# re: More on SEHException
Requesting Gravatar...
GPS Control Room..LED downlights
Left by LED downlights on Jul 16, 2011 1:40 AM

Your comment:
 (will show your gravatar)

Copyright © Tim Hibbard | Powered by: