Can't show form in class Library module

  • Thread starter Thread starter Laurence Nuttall
  • Start date Start date
L

Laurence Nuttall

I have a .net solution that is a class library.
I have a form in it called frmAbout

I have a public sub, or I assume what will be a method
to show the form. but when I type the frmabout name
and then a . there is no show method listed.


Thanks in Advance,

Laurence Nuttall
Programmer Analyst III
UCLA - Division of Continuing Education


'----------------------------------------------------------------

Public Class Class1

Public Sub ShowAbout

frmAbout.show

End Sub
Public Sub New()

End Sub

Protected Overrides Sub Finalize()
MyBase.Finalize()
End Sub
End Class
 
In vb.net forms no longer have implicit variables called the same thing as
the form;

Public Class Class1

Private objForm As frmAbout

Public Sub Show()

objForm = New frmAbout

objForm.Show()
End Sub
End Class
 
Back
Top