Return to the procedure of Form1 after clicking button 1 on Form2

balamban

New member
Joined
Feb 21, 2007
Messages
4
Location
Phil
Programming Experience
1-3
for ex. on my form1 i have this procedure, and in the middle part of that procedure i have to call form2 to show.
and on my form2 i have this button and when i clicked that it returns back to where it was called. i have some code to make it clear..

VB.NET:
Public Class Form1
    Private Sub Button1_Click
    dim myForm as new Form2
    ...
    myForm.Show()
    ...
    'after clicking that buton on Form2 it should return here
    ...
    End Sub
End Class
 
Public Class Form2
    Private Sub Button1_Click
    ...
    'a code here that return to button1_click on Form1
    ...
    End Sub
End Class

im still a newbie that is why have to ask this.
thanks for your help.
 
Those were two separate instructions

NOWHERE DO I SAY TO PUT THAT CODE INTO THE BUTTON1 CLICK HANDLER OF FORM2
 
Back
Top