Results 1 to 3 of 3

Thread: How Many Lines in a Label?

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    In my app I would like to dynamically change the height of a label so that it is just tall enough to show all the text of the caption. I think that in order to do that I need to be able to determine the number of lines of text in the caption. Does anyone know how to do that, or does anyone have a better way?

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

  2. #2
    New Member
    Join Date
    Jan 2000
    Location
    kuwait
    Posts
    9

    Post

    hi
    you can do it by this simple way:

    put this property of the label AutoZise=True

    Regards

  3. #3

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    Thanks, but I need to maintain the labels Width, and if I set AutoSize to True, that's difficult.

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

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