By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,567 Members | 1,605 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,567 IT Pros & Developers. It's quick & easy.

treeview nodes

P: n/a
I made my own user treeview control.
Now, I can't access the method treeview.Nodes !
Why?
Hrcko
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You need to expose the Treeview.Nodes collection of the Treeview as a public
property of your user control.

DalePres
MCAD, MCDBA, MCSE

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d0**********@ls219.htnet.hr...
I made my own user treeview control.
Now, I can't access the method treeview.Nodes !
Why?
Hrcko

Nov 16 '05 #2

P: n/a
How?

Hrcko

"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:O6**************@TK2MSFTNGP09.phx.gbl...
You need to expose the Treeview.Nodes collection of the Treeview as a
public property of your user control.

DalePres
MCAD, MCDBA, MCSE

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d0**********@ls219.htnet.hr...
I made my own user treeview control.
Now, I can't access the method treeview.Nodes !
Why?
Hrcko


Nov 16 '05 #3

P: n/a
In your user control:

public TreeNodeCollection Nodes
{
get { return myTreeView.Nodes; }
set { myTreeView.Nodes = value; }
}

In your control consumer:

TreeviewNode node = myUserControl.Nodes[intIndex];

HTH

DalePres

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d1**********@ls219.htnet.hr...
How?

Hrcko

"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:O6**************@TK2MSFTNGP09.phx.gbl...
You need to expose the Treeview.Nodes collection of the Treeview as a
public property of your user control.

DalePres
MCAD, MCDBA, MCSE

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d0**********@ls219.htnet.hr...
I made my own user treeview control.
Now, I can't access the method treeview.Nodes !
Why?
Hrcko



Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.