|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Multi Column ListBoxI see that it is possible to have a multicolumn ListBox:
lstOne.MultiColumn = True lstOne.ColumnWidth = 10 but the only way I have seen to have the items in the listbox print in the next column is to add enough items to go to the bottom and then start again at the top. Is there any way to select which column in the ListBox I want to have an item added to? Thanks for any help! m I don't know if there is a rational way or not,
but in this situation I put 10 listbox beside each other, then remove the borders and spaces, so they look like one listbox. Show quoteHide quote "matthewtec" <nixspam_matts_tech@yahoo.com> wrote in message news:%23VIYenJFGHA.3000@TK2MSFTNGP14.phx.gbl... >I see that it is possible to have a multicolumn ListBox: > > lstOne.MultiColumn = True > lstOne.ColumnWidth = 10 > > but the only way I have seen to have the items in the listbox print in the > next column is to add enough items to go to the bottom and then start > again at the top. > > Is there any way to select which column in the ListBox I want to have an > item added to? > > Thanks for any help! > m > Hi,
The listbox only supports one column. The listview control supports multiple columns. I think that might be a better choice for you. Ken ----------------- Show quoteHide quote "matthewtec" <nixspam_matts_tech@yahoo.com> wrote in message news:%23VIYenJFGHA.3000@TK2MSFTNGP14.phx.gbl... >I see that it is possible to have a multicolumn ListBox: > > lstOne.MultiColumn = True > lstOne.ColumnWidth = 10 > > but the only way I have seen to have the items in the listbox print in the > next column is to add enough items to go to the bottom and then start > again at the top. > > Is there any way to select which column in the ListBox I want to have an > item added to? > > Thanks for any help! > m > matthewectec
You can have a look at the multicolumn combobox. http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2934&lngWId=10 However, in my opinion *is* the DataGrid a multicolumn listbox I hope this helps, Cor Hi,
If you really want to use a ListBox control, I think that only the .NET 2.0 version supports multiple columns: http://msdn2.microsoft.com/en-us/library/system.windows.forms.listbox.multicolumn.aspx But you can use also a ListView control, take a look at the View property: http://msdn2.microsoft.com/en-us/library/system.windows.forms.listview.view.aspx -- Show quoteHide quoteBest regards, Carlos J. Quintero MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET, VB6, VB5 and VBA You can code, design and document much faster in VB.NET, C#, C++ or VJ# Free resources for add-in developers: http://www.mztools.com "matthewtec" <nixspam_matts_tech@yahoo.com> escribió en el mensaje news:%23VIYenJFGHA.3000@TK2MSFTNGP14.phx.gbl... >I see that it is possible to have a multicolumn ListBox: > > lstOne.MultiColumn = True > lstOne.ColumnWidth = 10 > > but the only way I have seen to have the items in the listbox print in the > next column is to add enough items to go to the bottom and then start > again at the top. > > Is there any way to select which column in the ListBox I want to have an > item added to? > > Thanks for any help! > m > Thank you all... this has helped me very much.
I appreciate your time. Thanks. Matt Show quoteHide quote "matthewtec" <nixspam_matts_tech@yahoo.com> wrote in message news:%23VIYenJFGHA.3000@TK2MSFTNGP14.phx.gbl... >I see that it is possible to have a multicolumn ListBox: > > lstOne.MultiColumn = True > lstOne.ColumnWidth = 10 > > but the only way I have seen to have the items in the listbox print in the > next column is to add enough items to go to the bottom and then start > again at the top. > > Is there any way to select which column in the ListBox I want to have an > item added to? > > Thanks for any help! > m >
Printing an ASP.NET web page from VB.NET - (HTTPWebResponse + Printing)
2 keys pressed at once Null in Visual Basic .Net??? Namespace around API calls Virtual Serial Port Bluetooth System.IO.Ports Date/Time control Too many case conditions? copying a collection rotate gdi object Late Binding syntax problem |
|||||||||||||||||||||||