treeview

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
 
A

AlexS

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top