Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-30-2004, 02:31 PM   #1
Member (8 bit)
 
Join Date: Jan 2003
Location: England
Posts: 152
VB.Net - Closing form2 from form3?

Hi All

Is there a way which I can close two forms with the use of one button/Linked Label?

I have 3 forms and I would like to close form2 and form3 (from form3) and display the user form1 again which is still loaded within the system.

The code which I am messing with is: -

Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked

Close()

Dim Input_Player_1 As New Input_Player_1

Input_Player_1.Close()

End Sub

Input_player_1 and input_player_2 are equivalent to form2 and form3 and it is these that I would like to close. At a later date, when the user lcicks on the linked label, the data which has been input will be error checked and then saved to the database and then the user will be shown the main menu again.

I dont know if I have caused a problem as I have opened form3 (input_player_2) via the use of the input_player_2.showdialog() command which means that control will not be passed back to input_player_1 until two has been closed??!!?!?!

I have tried looking about online, so i thought I would ask you for any pointers.

Any help would be appreciated for a very novice VB.Net programmer!

Karl
karl.pestell is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:51 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2