Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I want my form to be able to fit either 1024 X 768 or 800

X 600. Can someone please point me to an example.

 

Is there a way to hide a column or columns in a listbox?

 

Also,

 

I want to populate a listbox with multiple columns.

Below is what my dataset returns.

 

Unique Identifier, CustomerName

 

I have tried setting the

MultiColumn = true; and ColumnWidth = 2;

but I get strange results when I use the code below to

populate the listbox.

 

LBox.Items.Add(myRow.ItemArray.GetValue(5).ToString());

 

Thanks for your help,

 

niv

  • *Experts*
Posted

ListBoxes don't have multiple columns; what you are doing by asking for 2 columns is making it simple list the data in two columns, and making it scroll left-to-right, like the 'Small Icons' view in Windows Explorer.

 

You will want to research the ListView control if you want to list multiple columns.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...