473,698 Members | 2,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multi Column ListBox

I see that it is possible to have a multicolumn ListBox:

lstOne.MultiCol umn = True
lstOne.ColumnWi dth = 10

but the only way I have seen to have the items in the listbox print in the
next column is to add enough items to go to the bottom and then start again
at the top.

Is there any way to select which column in the ListBox I want to have an
item added to?

Thanks for any help!
m
Jan 8 '06 #1
5 61487
I don't know if there is a rational way or not,
but in this situation I put 10 listbox beside each other,
then remove the borders and spaces, so they look like
one listbox.

"matthewtec " <ni************ ****@yahoo.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
I see that it is possible to have a multicolumn ListBox:

lstOne.MultiCol umn = True
lstOne.ColumnWi dth = 10

but the only way I have seen to have the items in the listbox print in the
next column is to add enough items to go to the bottom and then start
again at the top.

Is there any way to select which column in the ListBox I want to have an
item added to?

Thanks for any help!
m

Jan 9 '06 #2
Hi,

The listbox only supports one column. The listview control supports
multiple columns. I think that might be a better choice for you.

Ken
-----------------
"matthewtec " <ni************ ****@yahoo.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
I see that it is possible to have a multicolumn ListBox:

lstOne.MultiCol umn = True
lstOne.ColumnWi dth = 10

but the only way I have seen to have the items in the listbox print in the
next column is to add enough items to go to the bottom and then start
again at the top.

Is there any way to select which column in the ListBox I want to have an
item added to?

Thanks for any help!
m

Jan 9 '06 #3
matthewectec

You can have a look at the multicolumn combobox.

http://www.planet-source-code.com/vb...2934&lngWId=10

However, in my opinion *is* the DataGrid a multicolumn listbox

I hope this helps,

Cor
Jan 9 '06 #4
Hi,

If you really want to use a ListBox control, I think that only the .NET 2.0
version supports multiple columns:

http://msdn2.microsoft.com/en-us/lib...lticolumn.aspx

But you can use also a ListView control, take a look at the View property:

http://msdn2.microsoft.com/en-us/lib...view.view.aspx
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com

"matthewtec " <ni************ ****@yahoo.com> escribió en el mensaje
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
I see that it is possible to have a multicolumn ListBox:

lstOne.MultiCol umn = True
lstOne.ColumnWi dth = 10

but the only way I have seen to have the items in the listbox print in the
next column is to add enough items to go to the bottom and then start
again at the top.

Is there any way to select which column in the ListBox I want to have an
item added to?

Thanks for any help!
m

Jan 9 '06 #5
Thank you all... this has helped me very much.

I appreciate your time.
Thanks.
Matt
"matthewtec " <ni************ ****@yahoo.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
I see that it is possible to have a multicolumn ListBox:

lstOne.MultiCol umn = True
lstOne.ColumnWi dth = 10

but the only way I have seen to have the items in the listbox print in the
next column is to add enough items to go to the bottom and then start
again at the top.

Is there any way to select which column in the ListBox I want to have an
item added to?

Thanks for any help!
m

Jan 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2021
by: Ellen Manning | last post by:
I'm developing an A2K adp that contains doctor info and the months they are not available for teaching. A doctor can be unavailable for some months for one year and other months for another year. I want the user to enter the year then use a multi-select list box to choose the months not available, then go to a fresh screen, enter another year and choose the months not available for that year, and so on. In the table, there is one record...
4
3461
by: Colleyville Alan | last post by:
I have an app in which users can select stuff from a multi-column listbox. There are something like 30 columns of info for each item and all are included in the listbox. When I scroll to the right to read some of them, the identifying info is now scrolled off the screen to the left. Is there a way to do this directly? I think I can fake a solution by overlaying one listbox with the one column on top of the other, but that's be clunky...
5
6336
by: Lisa | last post by:
Hello, I am new to using recordsets, and i am completly stuck with this one. I am trying to use a multi select list box to write records to a table. Something in my code is causing the same record to be written over and over, for example if I have 4 items selected, it writes the same item 4 times in my table. Here is my code.
9
4945
by: Susan Bricker | last post by:
Hi. I have two questions ... (1) I want to use a Listbox to enable the user to select 1 or many items from the list. However, I'm having trouble figuring out how to find out t which items have been selected. How can I do that? Given the listindex, .selected, .itemsselected, .itemdata properties -- I'm getting confused. (2) I, actually, have two listboxes on the form and I want to ONLY let the user select items in one list. The...
18
3348
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those columns, "scode" and "sname", as 1 column (if not possible then 2 columns will be fine) in the listbox. Can the listbox display 2 columns information from the dataset and how can I do that? Also, I set the property of the listbox to selectionmode...
9
1806
by: DFS | last post by:
You might also find other uses ========================================================= Public Function getSelections(selType As String, selSeparator As Boolean, selList As ListBox, selCol As Byte) As String 'BUILD IN CLAUSE FROM ITEMS CHOSEN IN MULTI-SELECT LIST BOX 'ARGUMENTS 'selType = text or number
1
5092
by: eric | last post by:
Hi, Can anyone please explain to me how I can cop selected items from a multi listbox(simple) to another multi listbox? the code I found on msdn only seems to support single column copies, i need to copy 3 colums per selection I was using a for each itm in somelist.itemsselected
5
4083
by: Matthew Wells | last post by:
I have a listbox set to simple multi select. For this example, users only select one item at a time. I have command buttons on the form for First, Previous, Next, Last, New (record). The form and listbox are unbound. The listbox rowsource is a value list. The list box has about sixty items in it. Each item in the list box corresponds to a record in the database. When a user selects a row in the list box, the record is retrieved. The...
17
3130
by: trose178 | last post by:
Good day all, I am working on a multi-select list box for a standard question checklist database and I am running into a syntax error in the code that I cannot seem to correct. I will also note that I am using Allen Browne's multi-select list box for a report as a guide. I should also note that my access skills are not the best so I may need some explaining on certain things. First let me give some background on the database: I have a...
12
4034
by: micarl | last post by:
How would i print a report based on criteria selected from several Combo Boxes as well as multiple Multi Select List Boxes, that are located on the same form? I can get one Multi List Box, just not several, to report using this code i found - Private Sub cmdPreview_Click()
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9027
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.