treeview

  • Thread starter Thread starter RobcPettit
  • Start date Start date
R

RobcPettit

Hi, Im using two forms, thanks to your help yesterday I resolved my
first problem. I open form1, from a menu I choose a task which loads
form2 which contains a treeview. O i expand each node until I get to
the last one, select this and form2 closes, with data bieng used in
form1. The first time I run this and do the above, but when form2 is
closed, form1 still running, if I choose my task, form2 loads but I
cant get to the last node, I can get to the one that loads the last
node. I get an error saying 'object reference not set to instance of
an object'. I did have a threading issue but I think Ive sorted this.
If I stop and then run again I can do it ok again until the second
atempt. Any Ideas?
Regards Robert
 
Your error is pretty self-describing. Stop in debugger on the line causing
that and check which object reference is null. Then put in some more logic
to prevent this error. Should be pretty simple.
 
Back
Top