Solved

List bar query.....or not?

Posted on 2000-02-23
7
133 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 55
Determine Range to Select 5 48
to transfer string from C lanaguage to VBA 4 66
Publisher:   Unknown     VB.exe Application 1 21
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…

803 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