Re: TreeView Control

From: vul (aaa_at_optonline.net)
Date: 01/25/05


Date: Tue, 25 Jan 2005 13:00:00 -0500

Thank you guys.
I found that sample on Internet. It's pretty complex, uses subclassing,
contains 6 standard modules, 3 class modules and 1 form.
As I know nobody will open an attachment, so it's difficult for me to
explain how do start the application. The entire code is too big to hope
that somebody will try to understand it.
I tried to simplify my problem by asking for the code which will work as a
mouse click on "+" sign near folder in Windows Explorer.
When I'm in Windows Explorer and I need to go for instance into VB98 folder
then I do the following steps:
1. I click on "+"sign next to My Computer
2. Click on "+"sign next to Local Disk (C:)
3. Click on "+"sign next to Program Files
4. Click on "+"sign next to Microsoft Visual Studio
5. Click on "+"sign next to VB98

I would like to open VB98 folder located in TreView control programmatically
by performing the steps above or something like that.
If I for instance could have a property of TreeView control called
SelectedNode, I would run this statement:
    TreeView1.SelectedNode = "C:\Program Files\Microsoft Visual
Studio\VB98".
Or if there was a method SetNode then
    TreeView1.SetNode "C:\Program Files\Microsoft Visual Studio\VB98"

Unfortunately I cannot find any property or method which allow to set the
node I want.
Maybe there should be used a set of statements. I just do not know.

Thank you
Al

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:eqT7XNwAFHA.2156@TK2MSFTNGP10.phx.gbl...
> "vul" <aaa@optonline.net> wrote in message
> news:ufkcCHwAFHA.1564@TK2MSFTNGP09.phx.gbl...
> > Thank you, Bob.
> > I did not ask about idea, I asked about code sample, property which
could
> > be
> > used, method...
> > Unfortunately "Locate the Node and pass it..." doesn't help me.
> > Al
>
> We can't possibly help you if you don't provide enough information....
> Originally, you said:
>
> > I'm trying to use TreeView control as a left pane of Windows Explorer on
> > my
> > VB6 form.
> > I populated this control with all items (Desktop, My Documents, My
> > Computer
> > etc).
> > I would like to open programmatically a particular folder at the
> > beginning,
> > for instanse I'd like to have "C:\Program Files\Microsoft Visual Studio"
> > How do I do that?
>
> So, what part of that post tells us what code you're using the populate
and
> open folders in your app? If you can't provide that code, you're pretty
much
> on your own.
>
> --
> Ken Halter - MS-MVP-VB - http://www.vbsight.com
> Please keep all discussions in the groups..
>
>



Relevant Pages

  • please help ::: .NET TreeView control exploded in my face :-o
    ... I wrote an application to display basic information in a small ... family-tree database. ... to display the folder hierarchy in its left-pane, ... Can anyone suggest a treeview control for VC++ .NET 2003 ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • WebControls error in an application running under an impersonate identity
    ... TreeView control to my own application which has to run under a domain ... enough rights in the %windir%/assembly folder. ... user but I was getting the same error message. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Treeview node select
    ... Is there a way to get the treeview control to recognize that a node is selected when using checkboxes? ... What I'm trying to do is build a browse for folder control where the user can select multiple folders using checkboxes. ... (i.e. if they check the box for a root folder, it will automatically select all subfolders, but allow them to de-select individual ones). ...
    (microsoft.public.vb.winapi)
  • Code not saving in Class Module
    ... The strangest thing is happening in my Personal.xslb folder. ... three standard modules and a Class Module with Application Level events. ...
    (microsoft.public.excel.programming)
  • drag & drop from CCRP Treeview control?
    ... Does anyone have a sample of drag and drop code that works with the CCRP ... Treeview control? ... I want to drag a folder (and it's sub ...
    (microsoft.public.vb.general.discussion)