Solved

List bar query.....or not?

Posted on 2000-02-23
7
132 Views
Last Modified: 2010-05-02
I have got node click events in a TreeView that return data (Text) and place the output (at the moment) in a ListBox...............however.

What I want to do is be able to click or highlight the text in the ListBox, and then select menu actions that will perform events on the text selected. However the complication comes as the text outputted by the node click is not simply flat text it is a reference to a batch of data, which within it has lots of different files, and it's these files I want to manipulate with my menu options. This is pretty much an emulation of some of the functionality of windows explorer.

My question is how do I do this?
Is the ListBox the correct control for this requirement?
If not what is the correct control, and is it a standard VB control or do I have to get it from elsewhere, if so where?
Can I somehoe change the FileList Box to suit my purpose?

Cheers,

Matt
0
Comment
Question by:Matt_Unsworth
  • 4
  • 3
7 Comments
 
LVL 12

Accepted Solution

by:
roverm earned 60 total points
ID: 2549906
I think you can use the listbox, but if it's the best solution...?

When you copy a node-text to the listbox then make it a 'friendly'-text.
Then in your process sub check the List1.Text property (make sure to have set the style to 2) and do all the necessay actions.

D'Mzzl!
RoverM
0
 

Author Comment

by:Matt_Unsworth
ID: 2550003
I'm pretty new to the VB game, could you expand  a little on your answer?
0
 

Author Comment

by:Matt_Unsworth
ID: 2568543
cheers
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Matt_Unsworth
ID: 2568548
Cheers
0
 
LVL 12

Expert Comment

by:roverm
ID: 2571664
Sorry, forgot to write back! Didn't have much time lately!
I'll write some code soon and get back to you!

D'Mzzl!
RoverM
0
 

Author Comment

by:Matt_Unsworth
ID: 2579420
No problem your initia lanswer put me on the right tracks and I've sorted it out form there.
0
 
LVL 12

Expert Comment

by:roverm
ID: 2579461
OK! Glad to have been of some assistance ;-) !

D'Mzzl!
RoverM
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to skip loop 6 55
Using "ScreenUpdating" 6 55
Adding to a VBA? 6 63
VBA filters 2 51
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now