?
Solved

VB.NET SHOWING OF FORMS

Posted on 2003-03-21
5
Medium Priority
?
221 Views
Last Modified: 2010-04-17
I am very new to VB.Net after upgrading from VB6.

I have just created  new application,  and have a form set to start, on startup properties.
but can not seem to open another form using form1.show.  I have been told the below code should be correct but cannot seem to get it to work...  Can anyone help.

   Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Fm1 As Form1
        Fm1.Show()
        Me.Close()
    End Sub

This code is located in the coding for Form1 form....
0
Comment
Question by:SBrighty
[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
5 Comments
 
LVL 3

Expert Comment

by:VBtom
ID: 8181506
If i understand you well you want to create a new form1 from inside form1 !???

Don't know what it's goog for, but if that's what you want to do, use Dim Fm1 As New Form1
0
 

Author Comment

by:SBrighty
ID: 8181671
I am actually tring to show an existing form called Form1
like you used to be able to in VB6.  When I use AS new Form1 it creates a new form...
0
 
LVL 16

Accepted Solution

by:
twalgrave earned 150 total points
ID: 8198737
0
 

Expert Comment

by:CleanupPing
ID: 9446915
SBrighty:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
Make the most of your online learning experience.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Simple Linear Regression

764 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