By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,198 Members | 1,412 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,198 IT Pros & Developers. It's quick & easy.

Listbox header

P: n/a
Is it possible to display a column header in a listbox?
Mar 27 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

NO AFAIK, if you want that you better use ListView
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Alex Bibiano" <ma**@abibiano.com> wrote in message
news:e6**************@TK2MSFTNGP11.phx.gbl...
Is it possible to display a column header in a listbox?

Mar 27 '06 #2

P: n/a
Please put a label ontop of the ListBox, or use a ListView (the Details
view).

If you absolutely want the ListBox and a heading, you would eg. have to make
a custom ListBox where you make a large top margin to hold the height of a
label you add to the ListBox.

Label l = new Label();
l.Text = "Hello";
this.listBox1.Controls.Add(l);
Regards,
Lars-Inge Tønnessen
Mar 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.