Solved

No Show

Posted on 2004-08-27
3
158 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now