473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Can't show form in class Library module

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
Nov 20 '05 #1
2 4996
Hi,

Dim frm as new frmAbout

frm.Show()

Ken
------------------------
"Laurence Nuttall" <Bl***@Bliff.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #2
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" <Bl***@Bliff.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
1
by: swapniliit2222 | last post by:
Hi I have a little problem, I have a source code which need to be compiled in two diffrent ways With some diffrent # defines in both cases. And I need to link both library to link to the same...
6
by: Barda4 | last post by:
Hi, So I'm making my final project for my CS class. I'm making a pokemon game. So right now I'm trying to input information(The pokemon the player has) into my array of objects(The list of...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.