473,772 Members | 3,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6055
"Simon Trew" <ten.egnaro@wer ts> wrote in message
news:eC******** ******@TK2MSFTN GP12.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
5533
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 is true, then prevent the current item jump to another one. In TreeView, I can set e.Cancel = true in the event BeforeSelect. However, can I do similar thing in ListView? Thanks.
7
10416
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, while they are added to the treeview without the path (only file name). I'd like the user would be able to remove multiple items selecting filenames from the listview. So, items should be removed both from the listview and the treeview. How can I do...
0
1877
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 there are commercial options but a) I don't want to pay and b) they're all massively bloated. I want exactly a TreeList + ListView, and I want it to be kilobytes, not megabytes! :) I originally wrote one from scratch in .net 1.1, which had a few...
0
1782
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 may not have some subdirectories with the same name. I am not having any problems populating the treeview with the corresponding directory structure when switching between radio buttons. In the treeview's AfterSelect event, I take the path from...
6
9974
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 column of lvwBuild to be a node and the second column to be a branch on the TreeView (hopefully I have the syntax correct). I've been researching how to do this but have come up empty. I'm guessing that you would fill an array from lvwBuild and...
0
16298
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 components Add a TreeView and a ListView control to the form. Add this sample code to the form ========================== Dim con As New ADODB.Connection
0
3311
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. Provide following view properties to listview, through View menu a. Tile b. Icon
0
1402
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. I want to know how to: By clicking a folder in the listview, expand and repopulate the corresponding node in the treeview. I have literally tried everything that I can think of, and I cannot get anything to work. This is for an assignment in...
1
2378
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 recommend me how i can do this, with as less delay and flicker as possible,... What are the right steps and methdods for this. What to do before clearing tree- and listview and what to do while
0
9620
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9912
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.