[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Opening one form from another

Posted on 2007-08-02
Medium Priority
Last Modified: 2013-12-26
In VB 2005 express how can i open one form (form2) from another form (form1) when i click on a button (button1). I have try to use show but it keeps giving me errors.
Thank you.
Question by:jodyreid
  • 4
LVL 14

Expert Comment

ID: 19619673
Are you trying to open another aspx page from one aspx page ?
If that is what you want see this.

hope it helps.

Author Comment

ID: 19619700
No i have a project started in Visual basic 2005 express. I have a form opened and on this form i have a button that when clicked will open another form. The first form will have about 6 buttons when finished all opening different forms.
Thank you.
LVL 14

Expert Comment

ID: 19619812
Ok good.


Add this to your button. Basically this javascript will open a page mentioned.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 14

Expert Comment

ID: 19619829
I forgot to refer you the link.
LVL 14

Expert Comment

ID: 19619858
LVL 86

Accepted Solution

Mike Tomlinson earned 1000 total points
ID: 19620584
Is this a WinForms app?

If so, just:


Or, if you want a new form to show up each time:
    Dim f2 As New Form2

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

834 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