Home All Groups Group Topic Archive Search About
Author
25 Sep 2006 4:53 AM
Muhammad Ahsin Saleem
Hi
I want to make a multi Line List Box. This list box will have multiple
lines for one item and this list box have all other functions like the
single line list box. Can any body help me its urgant

Author
25 Sep 2006 4:58 AM
Cor Ligthert [MVP]
Muhammed,

Assuming that you mean a multi column listbox (there is already a multiline
listbox as every listbox is that), I advice you to take a DataGrid or a
DataGridView and remove all the headers from that.

Than you have a very nice multicolumn listbox.

I hope this helps,

Cor

Show quoteHide quote
"Muhammad Ahsin Saleem" <ahsin.sal***@gmail.com> schreef in bericht
news:1159160036.467940.199400@k70g2000cwa.googlegroups.com...
> Hi
> I want to make a multi Line List Box. This list box will have multiple
> lines for one item and this list box have all other functions like the
> single line list box. Can any body help me its urgant
>
Author
25 Sep 2006 5:16 AM
Muhammad Ahsin Saleem
thanks cor but it is still not clear to my what do you mean i need a
multiline listbox not a multi colums. if you could tell me any code
related to it then it will be fine for me.

Cor Ligthert [MVP] wrote:
Show quoteHide quote
> Muhammed,
>
> Assuming that you mean a multi column listbox (there is already a multiline
> listbox as every listbox is that), I advice you to take a DataGrid or a
> DataGridView and remove all the headers from that.
>
> Than you have a very nice multicolumn listbox.
>
> I hope this helps,
>
> Cor
>
> "Muhammad Ahsin Saleem" <ahsin.sal***@gmail.com> schreef in bericht
> news:1159160036.467940.199400@k70g2000cwa.googlegroups.com...
> > Hi
> > I want to make a multi Line List Box. This list box will have multiple
> > lines for one item and this list box have all other functions like the
> > single line list box. Can any body help me its urgant
> >
Author
25 Sep 2006 10:54 AM
Herfried K. Wagner [MVP]
"Muhammad Ahsin Saleem" <ahsin.sal***@gmail.com> schrieb:
> I want to make a multi Line List Box. This list box will have multiple
> lines for one item and this list box have all other functions like the
> single line list box. Can any body help me its urgant

Check out the listbox' 'DrawMode' property and its 'DrawItem' and
'MeasureItem' events.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>