columns in listbox


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: columns in listbox

  1. #1
    Join Date
    Jul 2005
    Posts
    6

    columns in listbox

    hi guys..
    im only asking.. do you know that listbox can contain more than 1 column (like grid)? if you do know, please tell me the code.. coz i kinda need it.. thanks very much

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    Columns in ListBoxes are created through "tab stops". See the following:

    http://vbnet.mvps.org/code/listapi/cooltabs.htm
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You might also consider using a ListView control in Report view:
    http://msdn.microsoft.com/library/en...iewcontrol.asp, or simply using a grid control. :-)
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  4. #4
    Join Date
    Jul 2005
    Posts
    6
    yeah.. finally i use a sheridan grid.. but i just wanna know whether a listbox can be divided into columns or not.. well, anyway.. thanks a lot

  5. #5
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    yes, it is possible:

    http://www.freevbcode.com/ShowCode.Asp?ID=103

    Marco

    PS I am not very found of the Sheridan controls, they are expensive, you need to learn how to use them, and they need to be distributed with the app. And most of the times they are overkilling.
    If you just need multiple columns, you can use the ListBox (with the above code), the ListView (as Phil's suggestions) or a FlexGrid
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

Similar Threads

  1. DataGrid Header in Dynamically Added Template Columns
    By David Hirschfeld in forum ASP.NET
    Replies: 0
    Last Post: 01-05-2003, 11:49 AM
  2. Replies: 0
    Last Post: 11-14-2002, 01:19 PM
  3. display 2 columns in the standard listbox
    By shachar in forum VB Classic
    Replies: 5
    Last Post: 06-22-2002, 02:42 PM
  4. Overriding Columns property of s List
    By Traci A Butler in forum .NET
    Replies: 2
    Last Post: 03-26-2002, 10:21 AM
  5. Listbox Columns
    By Randy in forum VB Classic
    Replies: 2
    Last Post: 03-29-2001, 02:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center