Solved

No Show

Posted on 2004-08-27
3
162 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Footer for each row on Gridview 2 43
ModalPopup  question 22 40
Check only one toolstripmenu item 12 32
reading an excel file vb.net 2 23
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

697 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