AndersThornell
Nov 4th, 2002, 04:56 PM
Hello! I have a problem with VB. Net and a project that I am converting from VB6. I have a few modal forms. Thay are open as, for example:
'********************
Dim objfrm1 As frm1
objfrm1 = New frm1()
objfrm1.ShowDialog()
'********************
Every form have a event for Load, that does (or should do) some things every time the form is opened. The declaration for the event look like this:
'********************
Public Sub frm1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
'********************
My problem is that some of the forms doesn't go into the event, or what you now should call it, so the things that are supposed to occur don't occur.
I have compare the forms that works with the one that doesn't work, but I can't find any differences between them.
Does anyone know what the problem is and what I should do to do so that the Load event occur for all forms.
Very grateful for all help!
/Anders Thornell
'********************
Dim objfrm1 As frm1
objfrm1 = New frm1()
objfrm1.ShowDialog()
'********************
Every form have a event for Load, that does (or should do) some things every time the form is opened. The declaration for the event look like this:
'********************
Public Sub frm1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
'********************
My problem is that some of the forms doesn't go into the event, or what you now should call it, so the things that are supposed to occur don't occur.
I have compare the forms that works with the one that doesn't work, but I can't find any differences between them.
Does anyone know what the problem is and what I should do to do so that the Load event occur for all forms.
Very grateful for all help!
/Anders Thornell