Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Moving Within The Tree View


Hi all,

I have a tree view in my program. It gets its data from the database & displays it in the frames & textboxes present by its side.

Now I want that If a user moves a child node (drag & drop)from one parent to another, then the same is updated in the database as well.

This is how the structure of the tree view goes:

----Mine 1
--------Pit 1
------------Zone 1
----------------Blast1
----------------Blast2
----------------Blast3
------------Zone 2
----------------Blast1
----------------Blast2
----------------Blast3
--------Pit 2
------------Zone 1
----------------Blast1
----------------Blast2
----------------Blast3
------------Zone 2
----------------Blast1
----------------Blast2
----------------Blast3

Now I want that Blast 2 from Pit 2 > Zone 2 is moved from its original position to Pit 1 > Zone 1 then it must be updated in the database as well.

Can I attain this. Thanks all




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Matching List View To Tree View
Hi Everyone,

Quick Question. I have a list view and a Tree view that are sharing the same data. The Tree view control lists all the Task Names and the List view control has the task detail. (Start, End Date and resources.)

The only issue is that the Line widths do not match. The Tree View nodes have more white space between them then the list view. Is there a way that I can match the width of the tree view rows to the rows on the List view?

Thanks
BDS

List View, Tree View Controls
I have had the same problem... I ended up righting my own controls so that it would run faster on the population of the control...

Sorry
Brooke

Tree View + List View
Hai,

In my application, I have Tree view on left side and List view on the right side which is just like windows Explorer. I would like to get the same functionality like Explorer where you can move the seperator between Tree View and List View. That means I would like to make the List View wider or shorter as I wish.

Can any body help me?

Thanking you in anticipation

Moving Nodes In A Tree
I have a treeview and I have never worked with it before. I have samples that will allow you to move a node around the treeview. The only problem is that I can't figure out how to move the node 'between' two other nodes, only to move one node into another.

This is what I want to do.

Node 1
Node 2
Node 3
Node 4

I want to be able to move Node 4 'between' Node 1 and Node 2.

Does anyone have any suggestions?

Tree View
Hi All,

i am using the windows common control 6's treeview.

there is this option which is the check box.
does anyone know how to make the child node to be uncheck/check automatically when the parent is uncheck/check

please advise. Thanks alot.

Tree View
how can i place the node names like a tree. i'm new to handling the tree view, please give me a tutorial. thanks in advance..................

Tree View
Hi i want a treeview to show all files and folders in a specified directory so it ends up looking like this.

Main Directory
--- Folder 1
------ File 1
--- Folder 2
------ File 1
------ File 2
------ File 3
--- Folder 3
------ File 1

How would i do this.

Tree View
I created a table with 10 different job profiles and with each required skill. Id' like to use a treeview to display them, and i don't have a clue on how to elaborate it.

table:

profile 1; skill 1
profile 1; skill 2
profile 1; skill 3
...
profile 1; skill 4
profile 2; skill 1
profile 1; skill 2
...

Ideas ,please?!

Tree View
Hi

I have a TreeView which I am using a piece of code posted on this forum by Garrett Sever that changes the background colour of the treeview.

This works, but the one problem I'm having is when a user selects a node the selected item's background colour can clash with it's foreground colour. I belive it gets it colours from the desktop colours. Is there anyway I can override this and use my own colours for the selection ?

Thanks

How To Use Tree View
can someone show me how to used the tree view in visual basic please!?

Tree View
Hi again

Qn: Anyone know where can i get a good example and help on treeview (where there are nodes and roots)? thanks in advance

Tree View
hi, im using a tree view to display some information from a database. because the database is huge i decided to make it add nodes only when the parent is expanded. currently when a node is expanded it already has children and the childrens children get loaded. this part is working fine.

now i need to remove the nodes again when the top one is collapsed. when i collapse a node, its children must remain while its childrens children and their children are removed. is this possible?

Tree View! All About It!!!!!!!!!!!!!!1
I want to know how to work with a tree view. Inserting, deleting, updating it, basically what i want to know is the basics of working with a tree view. Can anyone tell me a web site that explains it well, or perhaps do it yourselfs.
Thanx

How To Use A Tree View
can anyone explain how to use the tree view function with the possibility of linking it to a database record

im really stuck so any help would be great

thanks

nige

Tree View
Is it possible to add a property to the node object (treeview). I would like to have an ADO recordset associated with each node. If this is not possible, then what is the way of storing extended information (i.e. NOT with the tag) with a node?

Tree View
how to display tables from database(ODBC not mdb) as node in treeview...and
how to add command to nodes (i.e open command)

Tree View
Dear All,
How to print all the childs of a selected node in a Treeview control.

Tree View
i have a tree view on my form and i also have a file folder containging .rtf documents in my app.path i am after looking in the folder and loading a new node for each .rtf file in the folder can anyone help!

Tree View I Think????
i am after a tree view i think to be able to show all text files in a chosen directory via the tree view window so as when the user checks some or all the files then those will be the files sent to the printer

Tree View
Hi, how do i use a tree view control as a folder list like a Dir List?

How Can I Use The Tree View ?????????????
Hi guys
I don't know nothing about using tree view and i need ti use it in my application!
How can exemple:
i got in the treeview the name File
and when i click on it the tree open and show Open and Exit
and how when i press Open somehing hapen and when i press Exit something hapen??
I hope that u know what i mean
and please don't give me any comlicated exemples (i'm just a biginner )

Tree View Help
I use this function to add nodes


VB Code:
Public Function AddTree(ByVal Name, ByVal Capt, ByVal PC) Dim NodeC As Variant     Select Case PC             Case "P"                        Set NN = TreeSetup.Nodes.Add(, , Name, Capt)                     Case "C"             NodeC = NodeC & NodeC            Set NN = TreeSetup.Nodes.Add(Name, tvwChild, NodeC, Capt)                 End Select      End Function


and i have these for my Nodes:


VB Code:
AddTree "Main", "Global", "P" AddTree "Main1", "Battle.net", "P"AddTree "Main1", "Login", "C"AddTree "Main1", "Options", "C" AddTree "Main2", "Bot Options", "P"AddTree "Main2", "Anti-Idle", "C"AddTree "Main2", "Filters", "C"AddTree "Main2", "GUI", "C"



Code:

But it ends up Showing like

Global
[-]Battle.net
Login
Options
[+]Bot Options
Anti-Idle
Filters
GUI


But i want it Like

[-]Global
[+]Battle.Net
[-]Bot Options
Anti-Idle
Filters
GUI



I want to be able to Collapse Global, but it won't let me >_<!!!!

Tree View
I have a treeview with stuff in it,but i wana clear out all the nodes and make it blank. how do i do it?
i need to refresh the contents of the treeview when i add or remove the data that it reflects

Tree View
How do I implement drag and drop in a tree view? Please HELP!!

Tree View
Hi Everybody.

Could somebody be really kind and give me an example of the code for the parent and child relationship for tree views, I would be really greatfull to anybody who can expliane this ..

Thank you and Happy New Year!

Tree View
Hello,

Can any body help how to fill tree view components and get data from same.

thanks

How Can I Get A Tree View Like This?
How can I get my treeview like the one in the attachment i have provided.
have a combo box to edit labels in the treeviewon a node have a label then the value I want to edit eg. Label: valueDisable picuters on some nodes.
I have been tried to do something like these for weeks now and I'm at a dead end with it.

Tree View
ok i need to save a tree view but all the code i got dont work i mean it does but i want code that saves tags along with the tree view ya know the tag of each node in the tree view if any body knows code for that i would very much apreshated it.

Tree View...
Alright, I downloaded a treeview code, because its the way i want it, and i edited it for my program, but how do i insert it into there?

Tree View Help
Are there any links which offer help on the tree view structure? OR anybody could offer me some advice on how to create a simple tree view structure?

Tree View
How do I put a tree view in my program like the one in for e.g., WIndows Explorer?

Tree-View
In a Tree-View I have a list of my Network places.
My Workgroup and computere.
I load this in the form Load.
Now I vill make it so if I click on the Workgroup I refress the tree an se if some new computeres are started and if some are closet then add / remove them from the tree.

A VIEW At The TREE
Is there any way to to have only the vertical scroll bar on a TreeView Control ?

Maybe some API or someother way ???

I believe anything is possible !!

Tree View
I've never used tree view and I'm trying to set up a menu so that when the user clicks on one item, it performs a certain task.
But I've never used Tree view before.

How do I add items to the list and set their heirarchy??

P.S. I am from Canada, and I send all my prayers to you in the USA today.....it's awefull.
I guess we're in it with you all .....

Tree View?????
I have a Treeview control that gets populated in runtime, with a lisbox next to it.

I want to add a item to the treeview by dragging it into the treeview. I have managed this and it works fine, BUT the user must first click on the NODE that he wants to add the information to!
Is there a way to select the node by dragging over it???

Tree View - Help ?
I can't figure this out , coz it happens randomly ( atleast I haven't seen any pattern to it)

My problem is that I have a treeview with checkboxes and as I progress through the tree , checking/unchecking items , all of a sudden , the highlight gets stuck on an item in the tree.
I can still check/uncheck other items , but the highlight focus still remains on that single item (The item focused on changes with diffrent runs).

Its a bit frustrating. I've eliminated the fact that I might be forcing a focus to an item , so that's not it.
All I added was this line of code in NodeCheck()
Node.Expanded = True
(so that when the user clicks on the checkbox it will expand ( i know the same happens when the user double-clicks, but they want it this way!)

Anyone notice this before ? Any help would be appreciated

Thanks

Tree View
Hello

Can't remember if I have posted this before but....

When adding children to a node can you specify where they will be added, ie top, middle, bottom????

Thanx

Geoff

Tree View...
I have a little problem....

I a have a simple list that contains file directories:

C:windowswin.ini
D:MyStuffvb1.exe
E:GamesC&Csun.exe


and so on..

how can i "convert" this list into a proper TreeView Style?
that is, "C:windowswin.ini" will become:

directory inside a directory inside it there will be the file...

Tree View
People had been posting messages about tree views of directories and files, does anyone know how we can create a tree view for umm topics like the ones in a index, with each topic and the sections under it..
#2 is there a tree view control, and if so under which project component could i get it
thx

Tree View
OK so I have a tree view control. I understand the whole node/child thing however, when I add the node I get an erreo, treeview must be initialized. I want the form to display the nodes on Form_Load.

I have never used the tree view...any suggestions?


Form_Load
Treeview1.Nodes.Add, ,"Whatever", tvwChild, , "Whatever"

I am just monkeying around, and have found little information on using the tree view control.

Just thought I would ask.
Lee

Tree View
Hi

Is it possible to do a multi-select in the Tree View control?

Cheers

Geoff

Tree View
anyone know how to highlight a particular node?

Tree View
I am using tree view to display hierarchical data. I am using the tree view style 7 that displays text, plus minus, and a picture.

My problem is that plus and minus only displays if the node contain a child node but only after you actually populate the node.

What I have done up to now is to perform a function "CheckForChild" for each node as it populates which checks to see if there are any futher children and then sets the display of the picture icon to show that there are children.
What I want to do is to display the 'plus' sign instead.

The only way I seem to be able to do this is to pouplate the entire tree and then collapse it however I only want to populate each level as it is displayed as it is a database recordset and the levels can run very deep and I don't want to load up the entire recordset.

Any thoughts...Any one...??

Tree View
Hi,
I want to pull the node names of the tree view from the database can anyone help me with this.
kanchan

Tree View Example Please!
Hello,



Im new to the treeview control and wonder whether anyone has any"wholesome"
examples (maybe their own or something they acquired off
the web) which shows how to use it.
I would like to know how to assign bitmaps or icons to the nodes, for
example using folder type icons which open and close as yourexpand/collapse
the node.



Cheers in advance!

Kind regards,


Darren Logan BSc(Hons)


Development Engineer

Tree View In Vb6 0
Hi all,

I hvae a tree view control in Vb6.0/ I am adding child nodes at run time. I want to have more spacing in between the child nodes. I think there is nothing like nodes.itemheight property available at run time in Vb6.0.

Any suggestions on how can I do it will help.

Thanks,

Anu

Tree View
I have currently running through the code a key using the following layout FORGroup(1)AOI(1) but want to manipulate this into ScopeNode()DisconnecteIdents().   

CODESet nodNewNode = tvwTree.Nodes.Add(tvwTree.SelectedItem.Key, _
                            tvwChild, "SCOPENODE(" & sScopeNode & ")DisconnectedIdents(" & sAOI & ")", _
                            "Idents not connected to an outstation", _
                            UNCONNECTED_IDENTS, UNCONNECTED_IDENTS)

Tree View
Did a search on tree view and nothing. Where can I go to get some idea on 'how to'?

thanx.

Tree View
I have a Tree View on an MDI form and when I minimise then restore the form, the tree view disappears. Can anyone help?

Copyright © 2005-08 www.BigResource.com, All rights reserved