Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Listbox With 2 Columns


Hmm,
Any benefits from the "boundcolumn property" in regards to input/output?

Regard,

Eric




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
I Want To Display Data In Two Columns In Listbox And Add Items In Listbox How Is It Possible In Vb 6.0
i want to display data in two columns in listbox and add items in listbox how is it possible in vb 6.0 ...?

I Want To Display Data In Two Columns In Listbox And Add Items In Listbox How Is It Possible
i want to display data in two columns in listbox and add items in listbox how is it possible ...?

Listbox Columns
Code:
List1.Columns = 2
List1.Additem("1")
how do you get it to the other column?

Thanks
-jaden

ListBox And Columns?!?!?
I have 2 column's in my list.

I would like to add Text from Tex1 to the left side and text from Text2 to the right. Is this possible? How do I go about doing this?

Thanks in advance

Columns In Listbox
Hi,

Is it possible to add items to a list box that has columns and can you add the data specifically to a column like below
for example:


Name Age Address
David 56 Any Address
Any Name 99 Any Address

any help if you understand this concept!!!!!!

Columns In A Listbox
How do you place data in the second, third, etc. column of a listbox? Here is my code to put data into the listbox, but I can't figure out how to put it in a designated column...

Do While Not Adodc1.Recordset.EOF
List1.AddItem Adodc1.Recordset.Fields("Lastname").Value & vbTab & Adodc1.Recordset.Fields("Firstname").Value & vbTab & Adodc1.Recordset.Fields("Extension").Value & vbTab & Adodc1.Recordset.Fields("DeptNumber").Value
Adodc1.Recordset.MoveNext
Loop

ListBox With 2 Or More Columns
Hello,

I need help for the following topic:

When I used VBA, I could use a ListBox with 2 or more columns.
Now I use VB6 and I can't find this option :-(
As far as I know, I can use a DataList instead a ListBox.
I already create a DataList but I have no idea how to configure a List with 2 or 3 columns :-(
How can I add a MyArray(x,y) to the DataList.

For example:
MyArray(0,0) = Name
MyArray(0,1) = Company
MyArray(0,2) = ID

Appreciate you help

Stefan

Columns In Listbox
How do I go about placing an item into the next column of a list box? What I am doing is gathering data from a database and placing the returned data into the the listbox. I want to be able to separate the data and place the data into its own column. I've tried using one column and using tabs, but it does not distribute things evenly since some results might be null. I don't want to use a List View or a data grid. I don't want to be able to select just a column, I want the entire row selected, that's why I want to use a list box. A data grid might work, but it will need to return the index number of the row in which is was found. Any suggestions???

Listbox Columns
I have this piece of code from a seminar I attended. I am trying to use it as a jumping off point for a project. However I cannot get this original code to work.

The form has a listbox (list1) and a command button(command1)

When command1 is clicked I just want to see the column headers in the listbox.

When I run the code this way I get an "Argument not optional" highlighting .List()

Code:
'First row in array will be labels.
dim LoadArray (0,2)
LoadArray(0, 0) = "PH"
LoadArray(0, 1) = "PAIR"
LoadArray(0, 2) = "NAME"

list1.list()=loadarray

with the exception of changing the string values for each array item the code is as it was in the seminar where I saw it work.

I have the columns prop. set to 3 for the listbox. Is there something else I'm missing?

As always thanks in advance for your assistence

Bart

ListBox Columns?
How would I make it so that a list box would have those button separators at the top of a list box? And how would I use the add listbox function to add text under the specified separator

Listbox Columns?
I'm doing a sort of file viewer thing with the file / dir listboxes and normal listboxes.

I choose a path and click a button then it loops through and adds each dir / file to the listbox, but is there a way to add columns that hold:

date modified & time modified & wether its a dir or file & filesize in kb & then name of dir / file

I've got the wether its a dir or file & filesize in kb & then name of dir / file but I need it in columns so it can be lined up & look neat.

Listbox With More Columns
Hi,
I have 60 items to be listed either in a listbox or in a textbox.. I want every 20 items listed in one column so that I can see them all on the form..So how should I modify a list box for my purpose...And Can I use a textbox in the same way ,too ?

Thanks

Listbox Columns
For school I need to make a listbox with two columns that can be added to, but I have searched the web and I cannot find any information that would explain to me how to do this. I have made columns, but I cannot figure out how to add to a column other than the first. I am using VB 5.0.

Listbox Columns Help
I have set a listbox to contain 2 columns, and the data on the second column doesn't show. You have to use the horizontal scrollbar to scroll right to the data in the second column. But if i set the number of columns to 3, it shows the first two together, but when i click on an item in the second column, it scrolls the list box over to show only the second column. What i want is to display both columns at the same time and when i click the second column, i want it to stay in place, not make the list box scroll. Any suggestions?

2 Columns In Listbox
Hi, i have a list box but dont wuite understand how you use the 2 columns option. I have set it to 2 columns and want only column 1 showing, in this will be filenames, and in the second not showing column will be that filenames directory. How do i do this?

To add the files to the box i have a filelist box and i add files from there.

Thanks.

Listbox Columns
I have a list box I am populating during runtime. What I would like to do is have the listbox populate in another column, say the 2nd or thrid one over. something like this


VB Code:
list1.column2.additem "something"

This obviously does not work. Is it possible?

thanks

ListBox Columns???
I was using a list view before, but now I WANT to use a listbox... how can I use the columns, so that I can put a word in the first column, then a value in the next? Right now it just looks like the columns are just to stop from vertical scrolling, but maybe its just me...

Any info on this is appreciated!

Listbox Columns
Can I have columns in a listbox?
thanks

ListBox Columns
Can i insert another column to a listbox. I mean:" I NEED TWO COLUMNS TO BE DISPLAYED?

Does anyone know any control out of vb?

Listbox --> Columns
If my listbox have more than one column, how can I choose to wich column I want my value?
If I use this everything ends up in the same column.

List1.AddItem "Test1"
List1.AddItem "Test2"

Listbox Columns
How do I create a listbox with more than one column, and get it to display column headings for all the columns?

How To Do LISTBOX COLUMNS
IF i have 3 colums and want to add a line to a text box, how can i make the first column of that link "A", the second "B", and so on... Thanx for any help i will be on AOL INSTANT MESSANGER IF YOU WANT TO CONTACT ME
====================[ AIM: sirXris ]=======

ListBox With Columns Set To Two
I'm having a problem with the listbox control.
If I set the columns to two, and set the list index to 1 (the last item) the listbox always scrolls the first item off the screen.
This doesn't happen if the box is high enough to have the two items on top of each other, but If I use a longer box with the two items side by side and set the listindex to the last item, it scrolls the first one to the left.
This doesn't happen for numbers higher than three.

If anyone has ever had this problem and knows of a possible solution let me know.

Thanks

Columns And A Listbox?
How do you use columns in a listbox?

Theres a property but how would you add data to it?

Columns In A Listbox
Hi all

Is there any way I can divide a texstring into columns in a listbox??

My problem is this

I add several rows of text to the listbox
In each row the words are seperated with vbTab
But it doesn't look good

Ex.

XXXXXX YYYYY ZZZZ
XXXXXXX YYYYY ZZZZ
XXXXXXXXX YYYYY ZZZZ
XXXXXX YYYYY ZZZZ

that is I want them to be in columns

C.

LISTBOX ( 2 Columns )
I make a 2 column list box and I want to do that:

TXT_add1
TXT_add2

| TXT_add1 | txt_add2 |

I want to put in the list box and Get data my data from the list box after..
can someone help ?

Listbox With More Than 10 Columns
I use a form20 control listbox, where multiple columns can be filled (columncount = 15)
I fill in these columns FORM.LISTNAME.LIST(LISTINDEX, COLUMNTOBEFILLED) = "My text for this column"
Only when the COLUMNTOBEFILLED reaches 10 (=11th item in a row) I get an error that it is an invalid property or something
Any ideas?

Two Columns In My Listbox
I'm not sure if this is possible.

I have a table that has driver license and name information. I'd like to use a listbox to display both. Can I create two columns with this information? I need to treat them as different columns because if my user select an entry from a list, then on a second listbox there would be ticket information. So my key field that I need to select the ticket information is the driver license number.

Thanks a lot for any help you guys can give me.

Listbox Columns
I want to display two fields of varying lengths in a listbox and have them line up nicely rather than randomly in a zigzag fashion. The columns property doesn't give me what I'm trying to accomplish. Is it possible to space the data entries in a listbox according to some rule?

How Do You Divide A Listbox Into Columns
I would like to have a list box that has 5 colums (different sizes)

Fname Mname Lname Birth Gender


I would like the user to beable to enter information and then click the add button and have it displayed properly.

How do I format the list box to do this??

Listbox Multiple Columns
I am using a listbox and I want to have columns to devide the information. I was wondering if this is possible? I should also mention I am using VBA within Excel.

Multiple Columns In Listbox
I have a listbox (VB6) with 3 columns. However, I cannot figure out how to fill in columns 2 and 3. List1.additem only takes a single string, and if i use additem again, it starts on the next line, leaving column 2 and 3 empty. How do I fill the other columns?

Displaying Several Columns In A Listbox
how do i show several columns in a listbox. Example:

column1: Names
column2: Addresses
column3: Gender

Display Listbox In Columns
hello

does anyone know how to display columns in a listbox and make each added item be aligned with the one above.

Like So:

Heading1 Heading2 Heading3
Test Test2 Test3

Cheers!

Columns ... Listview ... Listbox ... ... ...
Hi everybody!

I am sure everybody knows the detail view of the explorer!

Is there anything that is just like that?

I tried it with the listbox control , but i there are no tabs!
Besides ... i couldnt get anything in the other rows.

Then i tried it with the listview and it was just the same.
I was able to put some stuff in the other columns, but i could move the items around like the icons on my desktop.

I tried the search machine and allapi.net before this thread, but either couldnt find anything or couldnt understand it.

Do you guys got some genius homemade ocx that is just fixing my problem ... or just got a hind

Greets
Ben

Adding To Listbox Columns
how do you add data to a listbox column(s). i have a string that I need to split into 4 columns. any help would be great.

Specifying Which Columns Data Goes To In A Listbox?
http://www.pbase.com/image/13711098/original.jpg

Basically I need to calculate the Employee pay first then submit it which enters all the data into the listbox on the bottom. How do I specify which column the data goes to? Also I need it where after I submit one employee the next employee I enter goes to the next line.

Thanks.

Listbox - Multiple Columns?
Is it possible to create multiple columns in a listbox?
I read somewhere that listview can handle it but I don't know how to do.

How To Access The Listbox Columns?
how can i use the columns in the listbox / combobox controls?

Listbox With Columns And SQL Statements
1st? Im having trouble with having the list box show item and then price using SQL statements. I can get it to display the item no problem, but getting the price to show up in the 2nd column is being a little tricky.

2nd? Once I choose the item it transfers to another list "Overview of what has been selected" before transfering to that list I have a input box appear asking how many they would like. I would like to have a textbox with a listcount of how many items they have chose.

Example of what I have
dim strnumber
strnumber = inputbox.......
txtitemcount = strnumber + lstoverview.listcount

of course my numbers are jacked. Can anyone refresh my memory or point me in the right direction? I need the strnumber to be the listcount. Every Item they choose one of defaults to 1 in the inputbox.

Thanks in Advance

Multiple Columns In VB Listbox?
Is there a way to put data in multiple columns in VB without having all these fussy vbtabs that I've seen in various solutions online?

On a listbox I'd like to put a list of teams and next to them the number of cases in the system pertaining to them.

I have multiple listboxes on the form that I have to populate so I wrote this code to do it...I was hoping whatever solution I find with multiple columns will fit what I already have (if it stinks please tell me, I'm always looking to improve):


Code:
Call ListBoxLoop(intLower, intUpper, rstArray(), strSQLArray(), ctlListArray())



Code:
Public Function ListBoxLoop(intLower, intUpper As Integer, rstArray() As ADODB.Recordset, _
strSQLArray() As String, ctlListArray() As ListBox)
Dim i As Integer
For i = intLower To intUpper
Set rstArray(i) = New ADODB.Recordset
rstArray(i).Open strSQLArray(i), cnConn, adOpenForwardOnly
ctlListArray(i).Visible = False
Do While Not rstArray(i).EOF
ctlListArray(i).AddItem (rstArray(i).Fields(0))
rstArray(i).MoveNext
Loop
ctlListArray(i).Visible = True
Next i
End Function

Add Items To A Listbox With 3 Columns
HI, everyone!

How can i add items to listbox columns?
Letīs say for example i want to add items to the column 3 of the listbox, how can i do this?

thanks.

How Do You Add Text To Columns In Listbox?
I've been searching for this all over the forum and all I found is "use listview
instead" and I don't like listview!!!
can someone tell me how do you put text into columns?

I have a 3 column lisbox

Thanks

Columns Inside A Listbox?
I heard someone mentioning that it's possible to create columns inside a list box? How do i do this?
If it's not possible, then what control do you guys think is the best for creating options box with columns? (like when you put A,B,C,D inside a combo box, but with columns)

How Do I Make Columns In A Listbox?
hello,

I want to make 4 culomns in a listbox, and give each column a title,
I want to extract data from the columns of listbox and write data
into them.
how do I do all that?

thanks

Multiple Columns In A Listbox
I need to have multiple columns in a listbox and don't know how.

Specifying Which Columns Data Goes To In A Listbox?
Basically I need to calculate the Employee pay first then submit it which enters all the data into the listbox on the bottom. How do I specify which column the data goes to? Also I need it where after I submit one employee the next employee I enter goes to the next line.

Thanks.

Multiple Columns In A Listbox
In a listbox that has been set to have multiple columns, is there a way to push added items into specific columns?

If not is there another control that would be better suited to this?

Thanks,
John

Add Data To Listbox With 3 Columns
Place a Combobox and a commandbutton on a form, place this code behind it.


Option Explicit

Private Sub Command1_Click()
Dim MyArray(5, 3)


Dim i As Single

ComboBox1.ColumnCount = 3


For i = 0 To 4
MyArray(i, 0) = i
Next i

MyArray(0, 1) = "Zero"
MyArray(1, 1) = "One"
MyArray(2, 1) = "Two"
MyArray(3, 1) = "Three"

MyArray(4, 1) = "Four"

MyArray(0, 2) = "Item one"
MyArray(1, 2) = "Item two"
MyArray(2, 2) = "Item three"
MyArray(3, 2) = "Item four"
MyArray(4, 2) = "Item five"

ComboBox1.List() = MyArray

End Sub

Greetz, Luc

Copyright Đ 2005-08 www.BigResource.com, All rights reserved