Solved

List bar query.....or not?

Posted on 2000-02-23
7
131 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 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

22 Experts available now in Live!

Get 1:1 Help Now