R
Robert Smith
Hello,
I have a problem with my form.show not working. I have
a standard forms collection class as follows:
Public Class FormsCollection
Inherits CollectionBase
Public Shadows Function Add(ByVal FormObject As
Form) As Form
MyBase.List.Add(FormObject)
Return FormObject
End Function
Public Shadows Sub Remove(ByVal FormObject As Form)
MyBase.List.Remove(FormObject)
End Sub
End Class
In my start up form I want to initiate another form using
the code
Dim myform As Form
myform = New FrmProjectTree
myform.Show()
Me.Close()
I have the usual forms.add(me) and forms.remove(me) in
each form so that they are added to the collection each
time they are loaded.
Any ideas why this form.show won't work. the program just
quits without an error message
Regards
Robert
I have a problem with my form.show not working. I have
a standard forms collection class as follows:
Public Class FormsCollection
Inherits CollectionBase
Public Shadows Function Add(ByVal FormObject As
Form) As Form
MyBase.List.Add(FormObject)
Return FormObject
End Function
Public Shadows Sub Remove(ByVal FormObject As Form)
MyBase.List.Remove(FormObject)
End Sub
End Class
In my start up form I want to initiate another form using
the code
Dim myform As Form
myform = New FrmProjectTree
myform.Show()
Me.Close()
I have the usual forms.add(me) and forms.remove(me) in
each form so that they are added to the collection each
time they are loaded.
Any ideas why this form.show won't work. the program just
quits without an error message
Regards
Robert