Solved

How to get a hidden form to reapear again

Posted on 2009-07-14
2
205 Views
Last Modified: 2013-11-26
I have two separate form. the fiorst form loads and then I have a button on that page that will go to the next form, The trick is that if I hit that button I hide the loaded form and open the new form. If I close the New form how can I get the loaded form back?
ElseIf GaugeModel.Contains("200") Or GaugeModel.Contains("SealGap") Then

                Dim form As New EditGages

                serialCOMDiscover.Close()

                ' Me.Hide()

                Me.Visible = False

                form.Show()

Open in new window

0
Comment
Question by:cmdolcet
2 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 250 total points
ID: 24849483
Have you tried myForm.Show  ? you can also use My namespace to do that.
My.Forms.myForm.Show()
0
 
LVL 14

Expert Comment

by:shahprabal
ID: 24849735
When you show the second form show it modally :
form2.ShowDialog
so the next line in the main form's code won't get executed till form2 is closed.
Then just make mainform visible again.
mainform.hide
form2.ShowDialog          'passes control to form2 where you would have form2.close
mainform.show
 
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linq Help 1 35
SQL Login 17 40
How do I prevent the pages in my site from showing up in a google search? 2 36
Run a batch file when a Crystal Report is opened 5 15
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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 …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

895 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

13 Experts available now in Live!

Get 1:1 Help Now