T
Tracey
Hi, there
I met a very wierd problem. My startup form say Form1 has
a datagrid say datagrid1, when I click an item in
datagrid1, I wanna show form2. In my code, I achieved
that with:
private sub Datagrid1_currentCellChanged(ByVal sender As
Object, ByVal e As EventArgs)
....
Me.close()
dim frm2 as new form2()
frm2.show()
end sub
In form2 there is also a datagrid called datagrid2.
My problem is when I click the item in form1,form2 showed
up but with an error massage window says:
Cannot access disposed object named "DataGridTextBox"
Object name: "DataGridTextBox"
The problem is I didn't have any datagrid named with
datagridTextBox. Can someone provide some advice ?
Thanks a lot!
I met a very wierd problem. My startup form say Form1 has
a datagrid say datagrid1, when I click an item in
datagrid1, I wanna show form2. In my code, I achieved
that with:
private sub Datagrid1_currentCellChanged(ByVal sender As
Object, ByVal e As EventArgs)
....
Me.close()
dim frm2 as new form2()
frm2.show()
end sub
In form2 there is also a datagrid called datagrid2.
My problem is when I click the item in form1,form2 showed
up but with an error massage window says:
Cannot access disposed object named "DataGridTextBox"
Object name: "DataGridTextBox"
The problem is I didn't have any datagrid named with
datagridTextBox. Can someone provide some advice ?
Thanks a lot!