473,407 Members | 2,629 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,407 software developers and data experts.

Combination or Treeview & ListView - your opinions

I'm writing a NewsReader (seemed like a decent project to start learning
with), and want threading like in OE.

I've got a treeview and a listview. On Expand/Contract on the listview, I
spin through the nodes checking .IsVisible, and those that are visible, I
take the info I need (posted name / date) out of the .Tag (is there a better
place to put this?), and add them to the listview.

For now, it loops from the top, though it might be possible to just do the
node that was expanded/contracted, and just remove/insert rows to the
listview.

Anyways, just wanted to know if this is an acceptable way, you all know how
many posts might be available in a newsgroup, would this get bogged down
(both as it is now, and if I just analysed the changed node), and are there
any better ways?

Many thanks,
--
Daisy The Cow
Now playing: Mis-Teeq - Dance For Me
Nov 13 '05 #1
1 6019
"Simon Trew" <ten.egnaro@werts> wrote in message
news:eC**************@TK2MSFTNGP12.phx.gbl...
With a list view it's probably not too onerous to do it that way. If the
list is actually a fully-fledged grid (each row corresponding to a tree
node), then in my experience is yes, you do get bogged down, and it is
actually better to draw your own tree inside the grid rather than manage the interaction between the two controls.

Not saying I'm right, just that's my experience. Took about 2 years
developing one component, but that was very long before .NET.


I've discovered I can't have a row in each selected, and I'm getting closer
to thinking about a custom control, but the whole idea scares me, I've never
had to paint things before... I'm sure it's not going to be as easy as using
things that are there! ;)

I'm not sure if it'd be easier to start with a TreeView and add colums, or
with a ListView and add nesting. Either way, sorting is also going to be an
issue, I'll want to be able to sort on different colums :-\

It can't be such a hard thing to do, Outlook Express does it, I noticed
MusicMatch Jukebox has exactly the same in it's Library, and so many other
apps do it.. I'm disappointed MS haven't release one! :(
--
Daisy The Cow
Now playing: Alda - Real Good Time [Ikea Anthem Mix]
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: alan | last post by:
Hello, Can ListView have some event just like the event BeforeSelect of TreeView? When a user try to select another item in the ListView, I would like to do some checking first. If the result...
7
by: Progalex | last post by:
Hi everybody! I have a listview and a treeview in a form . With an OpenDialog I let the user select multiple files and then these files are added to the listview with the complete pathname,...
0
by: Danny Tuppeny | last post by:
Hi all, I have a need to display a message list in the same way as Outlook Express/Thunderbird displays new posts (and probably most other newsreaders, like the one you're using now!). I know...
0
by: Treeview Trouble | last post by:
I have an application where there are two radio buttons each of which populates a treeview control with a directory structure. Each radio button corresponds to a different directory which may or...
6
by: Beginner | last post by:
Hi, I'm trying to populate a TreeView from an existing and filled in ListView (lvwBuild). lvwBuild is a basic two column listview which can have any number of rows. I would like the first...
0
debasisdas
by: debasisdas | last post by:
This sample code displays employee name in the treeview control from the emp table of Scott schema in oracle database. To start with Select Microsoft windows common controls 6.0 (SP6) from...
0
by: divya1949 | last post by:
Create a windows c# application which will Read a xml file and populate nodes in the treeview. 1 On selection of treenode display the child nodes of that node in listview control 2. ...
0
by: MrColeyted | last post by:
I am designing an app that is similar to Windows Explorer. I have all working well. By clicking a directory in the treeview, the folders and files for that directory are displayed in the listview....
1
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, i am looking for a way to clear and fill a listview and right after a treeview nearly flicker and delay free. The TreeView and Listview contain Images and about 1000 Items. What can someone...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.