473,473 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Listbox header

Is it possible to display a column header in a listbox?
Mar 27 '06 #1
2 24744
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: y | last post by:
Hi, Is there a listbox header property of caption that I can set so that the user knows what the items in the listbox represent. Thanks, y
0
by: Robert Karlsson | last post by:
Hi, Is there a way of generating a tab within a ListBox item to create the illusion of columns within the item? Example: Header 1 Header 2 <- labels...
4
by: Lucas Tam | last post by:
Hi all, Does anyone have an example on how to populate a Listbox with Text, a ComboBox Control, and a Checkbox control? Basically I want my listbox to look like this: Some Text ...
4
by: CR | last post by:
In VB6 if I wanted to display a group of records, and possibly allow the user to select one or more records, I would use the ListBox. For example suppose I wanted to display something like this: ...
4
by: Brandon Potter | last post by:
I think I'm going crazy, but I cannot remember how to create a listbox with multiple columns as well as the sortable header block (a la Outlook message list). I've seen the examples of how to...
0
by: Sean | last post by:
Hi, I want to be able to display only the header of a dataset in a listbox. For example, if i was supposed to bind this dataset to a datagrid, it display the header with the content. I want to...
2
by: Daron | last post by:
I have a listbox that will only show the header row and the first record regardless of how many records are returned. I can find no code or settings that account for this. Details: - The list...
6
by: =?Utf-8?B?SnVzdGlu?= | last post by:
Hello: Does anyone know how I can create a multi-column listbox in VB.Net (Windows)...I am using VS.Net 2003. If there is another control available that can be databound with multiple...
1
by: captainphoenix | last post by:
all in vb2005 I have three arrays: one 2d array, two 1d arrays. I need to output them into a listbox and align them to columns, which I know how to do using string.format(blahblahblah). However, in...
2
by: =?Utf-8?B?R2VudGlhbiBIaWxh?= | last post by:
Is it possible to add a column header to the ListBox control that comes in VB.NET 2003 and how if possible at all? Thanks
0
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,...
0
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...
1
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...
0
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
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.