how do i close 1 form instead of the whole program??!!

SpiN9823
01-19-2004, 08:39 AM
i have a button on form2 that is meant to cloase it but is closes form1 too.... any help??

Computer Freak
01-19-2004, 09:01 AM
You probably closed form 2 before you loaded form 1.
Try putting in

Load Form1
Form1.Show
Unload Form2

MikeJ
01-19-2004, 09:50 AM
Seeing as this is in the .Net section, how are you closing the form, SpiN9823? Are you just doing Me.Close()?

SpiN9823
01-19-2004, 10:19 AM
no its
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End
End Sub

GMan_NC
01-19-2004, 10:21 AM
Do not use End, it 'Ends' the program, do what MikeJ said, use Me.Close to close the form

SpiN9823
01-19-2004, 10:36 AM
thx MikeJ and G_ManNC

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum