Re: TreeView Control
From: vul (aaa_at_optonline.net)
Date: 01/25/05
- Next message: Bonj: "Problem with the internet transfer control"
- Previous message: Ken Halter: "Re: VB6 Application closure"
- In reply to: Ken Halter: "Re: TreeView Control"
- Next in thread: Jeff Johnson [MVP: VB]: "Re: TreeView Control"
- Reply: Jeff Johnson [MVP: VB]: "Re: TreeView Control"
- Reply: Ken Halter: "Re: TreeView Control"
- Messages sorted by: [ date ] [ thread ]
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..
>
>
- Next message: Bonj: "Problem with the internet transfer control"
- Previous message: Ken Halter: "Re: VB6 Application closure"
- In reply to: Ken Halter: "Re: TreeView Control"
- Next in thread: Jeff Johnson [MVP: VB]: "Re: TreeView Control"
- Reply: Jeff Johnson [MVP: VB]: "Re: TreeView Control"
- Reply: Ken Halter: "Re: TreeView Control"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|