Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. mdi application error

mdi application error

Scheduled Pinned Locked Moved Visual Basic
helpcsharpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kharkov92
    wrote on last edited by
    #1

    I converted VB.NET 1.1 Windows application to 2.0. It's MDI application with many MDI children. Now I got strange error. When few diffrent MDI children opened at the same time, and then you close one child:sigh:, the whole MDI parent form falls into infinite loop like trying to redraw other child. And there is no other way to stop it, but close application using Ctrl+Alt+Delete. The funny thing is it happen not with all children forms, but I cannot find the rule or reason why. Can someone help? Thank you in advance.

    M 1 Reply Last reply
    0
    • K kharkov92

      I converted VB.NET 1.1 Windows application to 2.0. It's MDI application with many MDI children. Now I got strange error. When few diffrent MDI children opened at the same time, and then you close one child:sigh:, the whole MDI parent form falls into infinite loop like trying to redraw other child. And there is no other way to stop it, but close application using Ctrl+Alt+Delete. The funny thing is it happen not with all children forms, but I cannot find the rule or reason why. Can someone help? Thank you in advance.

      M Offline
      M Offline
      minhnguyen08
      wrote on last edited by
      #2

      trying again dim frm as childform Click_event... frm =new childform frm.mdiparent=me frm.show :)

      K 1 Reply Last reply
      0
      • M minhnguyen08

        trying again dim frm as childform Click_event... frm =new childform frm.mdiparent=me frm.show :)

        K Offline
        K Offline
        kharkov92
        wrote on last edited by
        #3

        Thank you for the response. That was exactly what I was doing. And I found the cause of this error. Most of the child forms have Maximized state and that what makes error.It looks like form starts draw and redraw header of the form and maximize it in a endless loop. As soon as I set it to Normal, the error gone. Instead on a Load event i resized the child form to Client area of MDI form and also removed maximized button. It solved the problem, but it is not how I expected make it. I have about 60!!! child forms and I need to open each one and change setting.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups