Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

List bar query.....or not?

Posted on 2000-02-23
7
Medium Priority
?
138 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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

604 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