all about exceptions
-
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"
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 -
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 photoalryt, 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.
-
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 photooh, 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.