473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

treeview nodes

I made my own user treeview control.
Now, I can't access the method treeview.Nodes !
Why?
Hrcko
Nov 16 '05 #1
3 1651
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: serge calderara | last post by:
dear all, Is there an easy way to bind a treeview control with an XML object as datasource? In a similar way as the dataset is doing, and build columns accroding to XML node, I could imagine a...
4
by: alanrn | last post by:
I am using a TreeView to display the hierarchy of a strongly-typed collection (inherited from CollectionBase). The order of the nodes in the TreeView is strictly tied to the order in which they...
3
by: Steve Richter | last post by:
in windows explorer, the nodes immed under the "my computer" root node appear with a minimum of indenting ( the +/- square is directly underneath the root node ). In the .NET TreeView control the...
5
by: Mark Goldin | last post by:
Anybody can shart some working samples of using that control on Windows form? Thanks
4
by: Ian Powell | last post by:
Hi I've got objects in an sorted ArrayList like: P:\ P:\\DOCS P:\\i386 P:\\i386\ASMS P:\\i386\ASMS\1000 P:\\i386\ASMS\1000\MSFT
3
by: Jan Wrage | last post by:
Hi! I would like to implement a treeview in my existing application. It should show my entire Active-Directory structure, i.e. all Groups, Containers and OUs. Could somebody help me with...
14
by: Mr.D | last post by:
How do I save/load the contents of a Treeview to a file? I have found several good examples written i VB6, but not a single one for VB.NET. Please help. ---- Tim
1
by: | last post by:
What's the best way to create new nodes on a treeview 2.0 and save them to an xml file? Thanks, Victor
0
by: apenly | last post by:
Hi all- I'm trying to Render a TreeView in a custom control, but I'm receiving a NullReferenceException at runtime. If I put the TreeView on the page it works fine, but as soon as I try to...
1
by: doemon | last post by:
Hi, I'm working on a pagination control and I need to dynamically rerender a treeview to display the next set of nodes depending on which page we're on. For example, page 1 will dispaly only...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.