Results 1 to 6 of 6

Thread: Problem With my Form **Resolved**

  1. #1

    Thread Starter
    Addicted Member Rally2000's Avatar
    Join Date
    Dec 2003
    Location
    Central USA
    Posts
    134

    Question Problem With my Form **Resolved**

    I had 3 Forms in my project, (a startup and 2 Main Forms) I have decided to add two more for use with Crystal Reports Viewer. It is all working but now I keep getting an error when shutting down my forms.
    The Error is telling me something like:
    An unhandled exception of type
    ‘System.Runtime.InteropServices.SEHException’ occurred in system.windows.forms.dll
    External component has thrown an exception.
    It did not do that till I coded the Crystal reports.
    Can someone help??
    Thanks!!
    I'm declaring all forms as owned.
    Code:
    Dim Blabla As New frmBlabla
    MyBase.AddOwnedForm(Blabla)
    Blabla.ShowDialog
    Last edited by Rally2000; Jan 4th, 2004 at 02:54 AM.
    Code:
    Dim R1 As Fast 
    Dim Kawasaki As crap
    Dim rash As necessary
    If Kawasaki onRoad = True Then
        R1.runoverKawasaki
    Kawasaki = rash

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Just a hunch but try using Me in place of MyBase.

  3. #3

    Thread Starter
    Addicted Member Rally2000's Avatar
    Join Date
    Dec 2003
    Location
    Central USA
    Posts
    134
    Hi Edneeis!
    I don't know what is going on, I tryed the exact same thing on my Labtop and it is working just fine.
    It is the same Folder then what's on my Desktop, I use CD to go back and forth.
    Strange!
    Code:
    Dim R1 As Fast 
    Dim Kawasaki As crap
    Dim rash As necessary
    If Kawasaki onRoad = True Then
        R1.runoverKawasaki
    Kawasaki = rash

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    This error has been attributed to Application.EnableVisualStyles and happens in Windows XP. Are you having the same situation?
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  5. #5
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    This is how the exception is produced.Opening a modal form from another modal form while using Application.EnableVisualStyles.
    Attached Files Attached Files
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  6. #6

    Thread Starter
    Addicted Member Rally2000's Avatar
    Join Date
    Dec 2003
    Location
    Central USA
    Posts
    134
    I'll be!!!
    You the Man!
    I was messing with VisualStyles I just deleted the few lines of code and now it is working again.
    Thanks Guys!
    I would have never known that, I was just about to take the File from my labtop again.
    Code:
    Dim R1 As Fast 
    Dim Kawasaki As crap
    Dim rash As necessary
    If Kawasaki onRoad = True Then
        R1.runoverKawasaki
    Kawasaki = rash

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width