o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Treeview controls -

Hi

Would some kind soul post some code to populate a treeview control with information from a database table? What I want to do is to have a treeview control with a list of companies taken from a company database table in SQL (via ADO).

When a user selects the company, a list box (or other control?) should populate with record details from a related contact table.

(i.e. select a company from tblCompany and have the list box populate with related contacts in tblContacts (where ID's match.))

Also, how easy is it to add, delete, amend records using ADO via these control or can that not be done?

Any help would be great
Thanks
Nora

 

treeview swapping to mscomctlib32 -
Hi all, I'm putting a treeview on my form and I want to use Windows common controls 5.0, as I want to change the background colour of the treeview which cannot be done in common controls 6. However even when the reference to common controls 6 is removed the program creates the tr


listview on top of treeview -
I have two controls, one a treeview and one a listview. I want the listview on top of the treeview, but the treeview always seems to be on top. Both need to be visible. Even in a new project, one form, place these two controls on them and see. U can place other controls like a listbox


Treeview and XML -
I need to be able to populate a treeview control on a webform from an xml file or dataset and have just noticed that Microsoft doesnt support there treeview any more. Can anyone help me out ? Are there any free server side treeview controls available which will do this ?


[2008] The Treeview control in the exceptions window -
If you are in VS 2008 and go to debug and then exceptions it brings up a window that has a treeview control in it. This treeview has columns and checkboxes in it. Is there a way to get and use this treeview in applications? I have found ways to add controls to a treeview but have


<Tab Strip And Treeview Controls> -
Ok...have a SSTab Control and it is acting weird..least ways to me. It has three tabs. Inside the 3 tabs I have 3 treeview controls. Whatever tab I have clicked in design time displays the treeview content properly in run time with the other two shifting the treeview text 1 or 2 inch


treeview w/ columns -
how hard is it to go about making a treeview with columns? like a listview / treeview combination... i would inherit the treeview and the column header and the listview subitems.... i think.. i don't have much experience w/ custom controls, only very very simple stuff... how imp


Ready to Strangle VB -
Okay, so I've got a treeview on my form. Clicking a node on the treeview loads some controls. Clicking a different node unloads the old controls and reloads some new controls. No problemo. So the boss says to me, "How about we get rid of the treeview and let the user select


Color That Treeview! [IGNORE] -
Is it possible to color the backcolor and forecolor of the treeview? It looks dull having a white background, and trying to contrast it with the colors of my form is tricky. Also is there any better third party controls for the treeview with say fully customizabilities. Such as high


Settings Form with multiple forms -
I would like to make a Preferens Form like the one i have attached to this post. I have seen in c++ projects that every item in the TreeView represents a diffrent form/dialog. So you don“t need to get a messy form with 100's+ controls. So can i make a form with a treeview, that di


API to create TreeView -
Does anyone know how I can go about getting a TreeView (like that from the Common Controls), but through API calls? I guess I'm going to have to use some form of CreateWindowEx, but I'm not sure how to get a TreeView rather than anything else. I could stick with the standard control,


How to scroll two treeviews together -
I have two treeviews side by side, and i would like to scroll these controls together. So If the user scroll down one treeview, the other treeview would scroll automatically. In VB.Net I can't find the scroll event for treeview controls to write an event handler. How should I do this


forum in treeview format -
Hi I was wondering if it would be possible to have a forum where the threads are displayed in a treeview format using some control in ASP.Net. The Treeview control available in VB would have been perfect but I dont see it in the ASP.Net toolbox. Would I have to code it in the .asp


Treeview and Windows Explorer -
i want to get away from using the drive/dir/file box controls and use only the treeview control, i have found a few examples on how to populate the nodes but only for 1 drive at a time, can anyone point me to or help me in figuring out how to make the treeview display just like the lef


Custom Combo Problem -
Hi All Hope someone can help with this! I have a custom control that combines a treeview with a combo, the combo in the control is made from a textbox and button and the treeview is just a treeview. Everything works ok, apart from when i put the control on a panel, the treevi


decide on what -
Hi, I wonder if I can have your thoughts on this topic... I am supposed to start the next stage of a project in which is in .net. The client would like to have drill downs, i.e. something like the treeview controls. Should I do this project in asp.net or vb.net (application)? I bel


adding and removing controls at rign time -
Hello sir, I want to make a treeview It is leftside it is tree view.when i click on frame1 then that frame on display on right side place. And next i pressed frame2 then frame1 disable and frame2 will be show how can i do... I want to add and remove frame controls t


Padding for TreeView -
Trying to put some space between the borders and the items in a TreeView control (Microsoft Common Controls 5.0). Something like this: http://www.vbforums.com/showthread.php?t=513679 but for a TreeView instead of a textbox. Is this possible?


treeview update -
hiii, is there a way to update treeview instead of reloading the treeview?? which means after updating , only the changed ndoe has been updated, but the treeview is still expanded as the pervious situation, coz the treeview shows the relationship in MS Access, and the db is huge ,


vbAccelerator controls -
I am using the treeview control and the image list from the vbAccelerator site, but whereas with the VB treeview you select the image list in the properties, I can't seem to be able to do this with these two controls. How can I 'connect' these two controls? Has anybody used these c


TreeView Problem... Newbie Question. Help please! -
Well, I have been trying to learn VB, I am starting off by making an FTP Program. I downloaded a few examples to understand the coding and I really understand most of the stuff but I have this one problem with all the FTP Examples... They all use the TreeView control but none of them w


Reload TreeView -
Does anyone know whether we can refresh / reload the data in the Treeview? Below is the case: My treeview got to load data from DB. After i edit the data in the treeview (the data has been saved to the DB), i want to reload the data inside the treeview... Can i empty the treeview


How to populate treeview with the content from a directory -
Hi, New to this forum.. I want to populate a treeview with the contents of my current directory(selected using folderDialog) CheckBoxes property is set to true. how to populate treeview recursively into the directory.??? i want to get the names of the checked folders from tree


Treeviews and ADO -
Anyone know how to populate/manipulate Treeview controls with a database? Any help on saving from a Treeview TO a database would be appreciated too. Thanks, Eiredrake


other app controls.. -
Is it possible to use GetWindowText to get the text of items within a treeview in another application? If not, anyone have any ideas how to go about getting the items listed in another programs treeview?


XP Manifests & the TreeView control -
Hi, I have added a manifest to my application to give it the XP look. However, it does not seem to work on the TreeView or the TabStrip controls. Anyone know what I have to do to make it work with these? Thanks, Rob Donovan.


TreeView Examples. -
Can someone show me some examples of using the TreeView component of Microsoft Windows Common Controls?


Raising events on a treeview to update it -
Hey folks, I have a VB.Net app that does batch renaming, copying and deleting of files according to various input/output paramaters. In the form I have a TreeView object which is populated with the various system devices etc (and behaves like the left pane in Windows Explorer) and


TreeViews and ListViews Controls -
I'm developing an explorer type app with a treeview and a listview. The rigtht side edge of the treeview comes in contact with the left side edge of the listview. I can't figure out how to resize these edges (of the treeview and the listview) at runtime so it will just be very similar


Common Control Components -
I was just playing around with the TreeView, and the TabStrip controls and was wondering how to change the title of a tab from insisde the app? And also how do you setup the TreeVIew control? Zevlag


treeview question....... please help me!! -
Hello there, Is there anyone know, is there a way to know how many root does a treeview have? The treeview item is add from database directly, so i don't know how many item will be added in to the treeview. But i need to know how many root does the treeview has... please help me


asp .net & treeview -
is there any way to add some component like treeview or tabstrip in asp .net ( web application ) i'm new at asp .net and really don't know if it is possible. i tried to add treeview with <object> tag in my aspx file, in design time it shows the treeview but i can't write c


resizing a treeview -
Hi... i have a form with a treeview and a listview placed side by side, how do i make the effect when the mouse pointer moves over the border and then resize both the controls...tnks in advance


context menus - treeview -
when i associate a contextmenu with a treeview all works fine, except if i right click on a node, it highlights it, and brings up the context menu, but the actual selectednode property of the treeview does not change... how would I go about selecting the node they click on i tried d


Please advise GUI ActiveX controls -
Hello all! I need an ActiveX controls or dll for GUI. Native Visual Basic GUI is very poor. May be you known fine controls? Such as advansed treeview and listview, toolbars and menu, skins. Include payable. Thank you.


TreeView Multiple Nodes selection for drag and drop -
Hi, I am working Treeview Control of Visual Basic Windows Comm Controls, I am loading data from a database on to the Treeview and drag and drop into the listbox. My question is, Is it possible to make multiple node selections and do drag and drop at a time with the control that come


Scaling two controls to fit form -
Hey... Following up on my previouw "scaling" problem... I have two controls on my form, a Textbox and a TreeView. I want the layout of the form to be roughly like this: Code: ____________ | | | | | | | A | B | | | | |______|___| A is


What do you want your TreeView to do -
I'm making a custom treeview control, and I was wondering what I should add into it. I have already implimented the following, but need some ideas of what else to add: All of TreeView's original features Individual Node ForeColor Individual Node BackColor Load TreeView from file Save


TreeView toolbox -
Hi All. On my toolbox I had 2 TreeView items. When I tried add item to Toolbox I uncheck TreeView by misstake. When I return back to check those TreeView items back I found only one: TreeView | System.Windows.Forms | System.Windows.Forms (1.0.5000.0) I check it and now TreeView ico


Treeview control -
Hi, I'm new to using the Treeview control, part of the Windows Common Controls that you find in Project/Components. When I add the Treeview control to my form I see 'Sample node' with Windows Explorer like indents, in the control in Design time. But when I run the program, there's n


TreeView Maintaining Status During a Session -
I have a treeview that I am using to create a type of online help. The treeview sits on a master page, and as items are selected, the appropriate child page gets populated: I know how to customize the treeview so that it displays a fixed numer of nodes on startup. But how do I s