Solved

How to get a hidden form to reapear again

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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