Solved

How to get a hidden form to reapear again

Posted on 2009-07-14
2
230 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
[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 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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