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. all about exceptions

all about exceptions

Scheduled Pinned Locked Moved Visual Basic
helpquestion
4 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.
  • F Offline
    F Offline
    fume
    wrote on last edited by
    #1

    An unhandled exception of type 'Sytem.OutOfMemoryException' occured in System.Windows.dll Additional information: Error creating window handle. --- what does this mean? how i came up with this when all my code did was "form1.show"

    S 1 Reply Last reply
    0
    • F fume

      An unhandled exception of type 'Sytem.OutOfMemoryException' occured in System.Windows.dll Additional information: Error creating window handle. --- what does this mean? how i came up with this when all my code did was "form1.show"

      S Offline
      S Offline
      SimonS
      wrote on last edited by
      #2

      Are you doing anything in the load/paint event of the Form? Cheers, Simon sig ::
      "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
      article :: animation mechanics in SVG     picture :: my first abstract photo

      F 2 Replies Last reply
      0
      • S SimonS

        Are you doing anything in the load/paint event of the Form? Cheers, Simon sig ::
        "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
        article :: animation mechanics in SVG     picture :: my first abstract photo

        F Offline
        F Offline
        fume
        wrote on last edited by
        #3

        alryt, this is an MDI application... the parent form calls the child form in the event menuItem_click w/c goes like this : childFrom.show in the load event of the childForm, i have this code : Me.StringForToolbar = "10000000100" , w/c is used by parent form to setup the tool bar. but even though i remove this, same thing happens. ... i never used the Paint event of my forms.

        1 Reply Last reply
        0
        • S SimonS

          Are you doing anything in the load/paint event of the Form? Cheers, Simon sig ::
          "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
          article :: animation mechanics in SVG     picture :: my first abstract photo

          F Offline
          F Offline
          fume
          wrote on last edited by
          #4

          oh, ive found out the cause in the event of the parent form OnMDIChildActivate. here's the code: 'Reset tool bar of parent using the stringFortoolbar of child 'This event is still being called when the form is being closed using the control menu If Me.ActiveMdiChild Is Nothing Then Exit Sub Dim objName As String objName = MyBase.ActiveMdiChild.GetType.Name() If objName = "ReceivingOrders" Then Me.ResetToolbar(RRChild.StringForToolbar) ElseIf objName = "MaterialIssuance" Then Me.ResetToolbar(MISChild.StringForToolbar) ElseIf objName = "TransferToAccounting" Then Me.ResetToolbar(TransferAcctChild.StringForToolbar) End If ... if i remove this, no error will occur.. pls. give me an alternative strategy for this. refer to the comments... and when shall i use the events OnMDIChildActivate and OnMdiChildActivate? tnx very much.

          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