?
Solved

List bar query.....or not?

Posted on 2000-02-23
7
Medium Priority
?
137 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 12

Accepted Solution

by:
roverm earned 180 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…
Suggested Courses
Course of the Month12 days, 16 hours left to enroll

777 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