I have 2 forms (form1 and form2) at some point in form1 I press a node on a Treeview and it opens form2 and I need to access some that that is on a grid in the form1 but I can´t
I'm trying this
Dim c As Integer
Dim form As New Form1
c = form.UltraGrid1.Rows(Me.UltraGrid1.ActiveRow.Index).Cells(0).Value()
but it gives me this warning "Object reference not set to an instance of an object."
What shall I do? I'm using VB .NET 2005