Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27248

VS 2012 Opening 1 form and closing another

$
0
0
Code:

Private Sub btnOKfrmTieSelection_Click(sender As Object, e As EventArgs) Handles btnOKfrmTieSelection.Click
        frmTieDataInput.Show()
        Me.Close()
    End Sub

I would like to close one form and open another without the closed form staying in memory. Hope that make sense. The above code closes everything even when I "flipflop"(put the "me.close()" above the "frmTieDataInput.show()"). Is there a simple way to accomplish this? Thanks.

Viewing all articles
Browse latest Browse all 27248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>