>> multi column listbox

Hi I so new to vb.net that the paints still wet...

I would like to load a listbox (as I would do using vba). The properties
show multicolumn = true
column width = 300

How do I set the individual column widths?

listbox1.add(newItem) appends a new item to my list.
How do I add the additional column for each list item?

Any ideas or suggestions appreciated :-)

--
Many thanks
Jonathan Parminter
Jonathan [ Fr, 04 Januar 2008 23:40 ] [ ID #1899485 ]

Re: >> multi column listbox

I think they must be the same size. Maybe try using a DataGrid...

Schneider

"Jonathan" <Jonathan [at] discussions.microsoft.com> wrote in message
news:DC0447AD-B35D-482B-ADFC-B8A75B494BB5 [at] microsoft.com...
> Hi I so new to vb.net that the paints still wet...
>
> I would like to load a listbox (as I would do using vba). The properties
> show multicolumn = true
> column width = 300
>
> How do I set the individual column widths?
>
> listbox1.add(newItem) appends a new item to my list.
> How do I add the additional column for each list item?
>
> Any ideas or suggestions appreciated :-)
>
> --
> Many thanks
> Jonathan Parminter
schneider [ Fr, 04 Januar 2008 23:44 ] [ ID #1899486 ]

Re: >> multi column listbox

If, as I think you are, referring to some of the features of ListBox and
ComboBox controls in MS Access, then you need to be aware that those 2
controls are specific to MS Access.

The multicolumn behaviour of the standard ListBox control means that items
are listed down until the visible part of the list area is 'full' and then
the next items 'flow' into the next column. It is not analoguous with a
'grid'.

If you need functionality analogous with a 'grid' then you need to consider
using the ListView or DataGridView controls.


"Jonathan" <Jonathan [at] discussions.microsoft.com> wrote in message
news:DC0447AD-B35D-482B-ADFC-B8A75B494BB5 [at] microsoft.com...
> Hi I so new to vb.net that the paints still wet...
>
> I would like to load a listbox (as I would do using vba). The properties
> show multicolumn = true
> column width = 300
>
> How do I set the individual column widths?
>
> listbox1.add(newItem) appends a new item to my list.
> How do I add the additional column for each list item?
>
> Any ideas or suggestions appreciated :-)
>
> --
> Many thanks
> Jonathan Parminter
Stephany Young [ Sa, 05 Januar 2008 03:25 ] [ ID #1900179 ]
Microsoft » microsoft.public.dotnet.general » >> multi column listbox

Vorheriges Thema: Error Msg unable to play game due to registry
Nächstes Thema: System.Uri and IPv6 with embedded IPv4