Results 1 to 3 of 3

Thread: MultilineListBox

Threaded View

  1. #1

    Thread Starter
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    MultilineListBox

    With the help of NickThissen, I've put together an inherited ListBox control that allows the item's height to allow multiple lines of text be shown. Here are some properties to make note of:
    • DrawDivider (Boolean) - Determines whether a horizontal line is drawn between the items or not.
    • DividerColor (Color) - The color of the divider line.
    • DividerThickness (Single) - The thickness of the divider line.
    • MultilineEnabled (Boolean) - Controls whether the ListBox allows the item's height to grow to span multiple lines or not. If set to false the ListBox behaves like a normal ListBox except that a divider line may still be drawn between the items.
    Suppressed properties:
    • DrawMode - This is fixed at OwnerDrawVariable to allow the item's to be drawn multilined or normal.

    Name:  MultilineListBox.jpg
Views: 874
Size:  19.7 KB
    To use the control, simply add the MultilineListbox.vb file to your project, build the solution then use like any other control.
    Attached Files Attached Files
    Last edited by JuggaloBrotha; Apr 27th, 2010 at 03:16 PM.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width