473,725 Members | 2,220 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 61489
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
2026
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
3463
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
6339
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
4949
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
3350
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
1808
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
5093
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
4084
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
3133
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
4044
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
8888
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
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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...
1
9176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9113
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...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3221
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
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.