|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Collapsing a treeview errorHey guys n gals,
I'm creating an application similar to explorer. Everything is fine at the moment, I have a treeview on the left with a listview on the right. If i populate the treeview out, then the listview gets updated. My problem is that when I collapse the tree back a level (to the child's parent) it throws vb error: 35602 - Key is not unique in collection. I'm aware of why it is doing this, but I'm not trying to create a new instance of that key, I just want to refer back to it again. Any help'd be appreciated guys. Nafe. Post the code where the error occurs, without it the best answer you will
get is: "because" Dave O. <nafell***@gmail.com> wrote in message Show quoteHide quote news:1127379355.743191.240450@g47g2000cwa.googlegroups.com... > Hey guys n gals, > > I'm creating an application similar to explorer. Everything is fine at > the moment, I have a treeview on the left with a listview on the right. > If i populate the treeview out, then the listview gets updated. > My problem is that when I collapse the tree back a level (to the > child's parent) it throws vb error: 35602 - Key is not unique in > collection. > I'm aware of why it is doing this, but I'm not trying to create a new > instance of that key, I just want to refer back to it again. > > Any help'd be appreciated guys. > > Nafe. > I think I've sorted it now. I was trying to re-child the parent if that
makes sense. But i've got it now so it just refills in the listview. Thanks anyway Dave. |
|||||||||||||||||||||||