Solved

No Show

Posted on 2004-08-27
3
160 Views
Last Modified: 2011-09-20
Hey Experts -

Can someone explain to me why I can't open a form using form.show?  That is the correct call to open a form from within a sub routine, isn't it?  When I try and use this command it says that "reference to a non-shared member requires an object reference."  Please help.

Erin
0
Comment
Question by:21erinswift
  • 2
3 Comments
 
LVL 8

Expert Comment

by:bramsquad
ID: 11916767
make sure to delcare the form and a NEW object

Dim frm As New Form1

Form1.Show()

~b
0
 
LVL 8

Accepted Solution

by:
bramsquad earned 75 total points
ID: 11916772
im sorry, it would be

frm.Show()
0
 
LVL 5

Expert Comment

by:thenrich
ID: 11916803
Yea .NET is an objected Oriented structure and your dealing with strict objects. You must intantiate the form then use the .show or .showdialog
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question