Welcome to Dream.In.Code
Become a VB Expert!

Join 137,233 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,738 people online right now. Registration is fast and FREE... Join Now!




Listbox Communication

 
Reply to this topicStart new topic

Listbox Communication, I have a query regarding listboxes

thingstocome
16 Mar, 2007 - 10:24 PM
Post #1

New D.I.C Head
*

Joined: 16 Mar, 2007
Posts: 1


My Contributions
Hello.
I'm working on making three list boxes, with three of the same types of information to held in each. The listboxes will be the categories for the items.
However, the information is listbox 1 must be easily added, deleted and transferred between either of the other two, and so on.

First problem: Multi line items in a list box.
I want the text to appear as:
"Name
Location
Price"
as one object in a listbox

CODE
lboxJobs1.Items.Add(InputBox("Insert Location...", "Owing: Location") & vbCrLf & InputBox("Insert Client Name...", "Owing: Client Name") & vbCrLf & InputBox("Insert Price...", "Owing: Price") & vbCrLf & "_____________________")


vbCrLf - is just adding square boxes. What is the code to effectively key 'enter'?

Second Problem: Clearing one item (with mutiple lines) from one listbox.
The item I want to delete must be selected - not just clearing the entire list box as the current code does.
CODE
lboxJobs1.Items.Clear()


Third Problem: Finding an efficient way to allow movement of listbox items between the three listboxes.
lboxJobs1 > lboxJobs2 > lboxJobs3 > lboxJobs1
lboxJobs1 < lboxJobs2 < lboxJobs3 > lboxJobs1

I have no idea where to start in terms of coding on this.

Once I figure out how to select a certain item in the listbox -as aforementioned, then I presume it would be a simple command to 'move' the item across.

Any assistance is much appreciated.
Thank you in advance,

thingstocome


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:49PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month