Hello,
I think you are after ByRef. You can set-up a parameter on the New()
function or another method in the child form, like the example below.
Private m_MyVariable As Object = Nothing
''' pass variable into child form
Public Sub New(ByRef MyVariable As Object)
''' child form has access to same object
m_MyVariable = MyVariable
End Sub
The child form will refer to the same object.
Hope this helps,
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
-
"Matt" <mr********@hormel.com> wrote in message
news:C5**********************************@microsof t.com...
I was wondering how I could pass variables between forms?
Thanks in advance