RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums
Views: 1133 | Replies: 11
Reply
Join Date: Jan 2008
Posts: 65
Reputation: SolTec is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
SolTec SolTec is offline Offline
Junior Poster in Training

Re: Form doesnt close or hide..

  #11  
Mar 5th, 2008
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frm1 As Form
frm1 = frmInput
frm1.Show()
Me.Hide()
End Sub

This is in your "Start" Form in the button1 click event

Private Sub frmInput_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
Dim frm As Form
frm = frmStart
frmStart.show()
End Sub

This is in your form Input closed form event, to show your form1 Start
Last edited by SolTec : Mar 5th, 2008 at 10:15 pm.
The journey of a thousand miles, begins with the first step!
Reply With Quote  
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,596
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Rep Power: 12
Solved Threads: 237
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Form doesnt close or hide..

  #12  
Mar 6th, 2008
Dim frm As Form
frm = frmStart
frmStart.show()
it should be : frm.show()
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:18 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC