-
[2005] Treeview
Hello, plss help me.
I started a project, an explorer aplication. I use a form and two classes for the treeview and listview objects. The listview class works ok, but the treeview class has a bug. At startup i declared it to fill with the contents of the computer, but I cannot access those folders.
My treeview class is called "DirectoryTreeView"
When I wanna acces it I call the variable: "Private dtvwDirectory As DirectoryTreeView" but all the time I get an error like this "Object reference not set to an instance of an object." If I use "Private dtvwDirectory As New DirectoryTreeView", the new class will be empty.
Ideeas?
Do you know any explorer projects?
Thx
-
Re: [2005] Treeview
You don't create a new instance at all. If you've added this tree view to your form then the object already exists and you've already got a member variable that refers to it. Unless you changed the name when you added it to the form you would access it via Me.DirectoryTreeView1.
-
Re: [2005] Treeview
thanks friend, you really helped me... I was so confused with that piece of code.