I had no problems in vb6

How can I do it in .net?
I'd like to access and change values of properties of the objects on another form.

ie: function T ( ByRef myForm as System.Windows.Forms.Form)

myForm.txtName.Text = "Joe"

end function