|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|