Delete node in treeview and its associated row in a database table
Posted on 2010-11-12
I have made this code and the purpose of it is to delete a node in the treeview
and its associated row from the table. The last part does not work.
private void tbDelNode_Click(object sender, EventArgs e)
Only the line marked with an arrow is not right. I get the message:
Object reference not set to an instance of an object.
Who can help me that when i selec a certain node of a treeview
the treeviewnode and its associated table row will be deleted.