Results 1 to 2 of 2

Thread: text box

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    1
    does anyone know a way of finding out the width (in pixels) of the text in a text box?

    i am trying to split the contents of a text box into several controls. however, i need to know if the text is longer than the width of the box.

    i also need to find a way of knowing which character is the last one that fits in the text box.

    i've looked at some APIs, but there must be a way of doing it.

    thanks.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Use the TextWidth property.

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