niv Posted July 1, 2003 Posted July 1, 2003 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 Quote
*Experts* Volte Posted July 1, 2003 *Experts* Posted July 1, 2003 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.