Hi,

I have been looking for an example on the web to reference a form within another form so that the properties can be used in the 2nd form. I have found a VB example (unfortunately i know nothing about VB) below but i have not been able to find a c# example.


The VB code in question is: -


Code:
Dim myForm As Form2
Private Sub Button1_Click( _
  ByVal sender As System.Object, _
  ByVal e As System.EventArgs) _
  Handles Button1.Click
  If myForm Is Nothing Then
    myForm = New Form2
    myForm.myCaller = Me
  End If
  myForm.Show()
End Sub
I have a form that opens another form. The 2nd form then opens a 3rd form form etc. I need to be able to reference the first form within the 2nd form so that if i click on a back button it hides the 2nd form and re-opens the 1st form and then if i click next on the 1st form i need to be able to re-open the 2nd form.

Can anyone please help me?

Thanks.

Darren