PC Review


Reply
Thread Tools Rate Thread

Can't show form in class Library module

 
 
Laurence Nuttall
Guest
Posts: n/a
 
      20th Feb 2004
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
 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      20th Feb 2004
Hi,

Dim frm as new frmAbout

frm.Show()

Ken
------------------------
"Laurence Nuttall" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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



 
Reply With Quote
 
Adrian Forbes [ASP MVP]
Guest
Posts: n/a
 
      20th Feb 2004
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

"Laurence Nuttall" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Class or Module for utility library Academia Microsoft VB .NET 10 26th Jan 2008 09:29 AM
Difference between Form's Class Module and Class Module tobesurveyor via AccessMonster.com Microsoft Access VBA Modules 4 14th Apr 2006 01:08 PM
Make VBA Class Module Library =?Utf-8?B?TWFyayBPbHNlbg==?= Microsoft Excel Programming 1 27th Mar 2006 12:01 AM
NullReferenceException in Unknown Module (C++ class library) Rei Miyasaka via DotNetMonster.com Microsoft VC .NET 0 18th Jan 2005 12:56 AM
VB hang when opening a class module (or form module) Antoine Microsoft Access 1 7th Mar 2004 12:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 AM.