Results 1 to 2 of 2

Thread: Reproducing Listview's double click on header action

  1. #1

    Thread Starter
    New Member ourman's Avatar
    Join Date
    Jun 2002
    Location
    Cuba
    Posts
    15

    Arrow Reproducing Listview's double click on header action

    In a listview control with several columns if you doubleclick on the separator vertical line between columns headers you'll get the column resized to allow seing all the text on the column.

    Is there anyway I can reproduce this action in code ?

    The idea is to be able to set the optimal width of the columns at runtime in order to be able to see all the text on the listview.

    Any other ideas?
    Saludos,
    Erich

  2. #2

    Thread Starter
    New Member ourman's Avatar
    Join Date
    Jun 2002
    Location
    Cuba
    Posts
    15

    Lightbulb For those who are interested in:

    Assign the column a width= -2 like:

    Code:
    listview1.columns(1).width=-2
    Saludos,
    Erich

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