Can't show form in class Library module

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
 
A

Adrian Forbes [ASP MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top