Results 1 to 4 of 4

Thread: resizing text box

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    2
    is it possible to have my progrom resize a text box relitive to the size of it's font/font size?

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    How about:
    Code:
    Text1.Width = Text1.Font.Size * 100 'just use all kinds 
    'of math operations. Same with Height
    Text1.Height = TExt1.Font.Size * 50 - 2
    Gl,
    D!m
    Dim

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    If you want something like autoresize you could place this in text1_change event
    Code:
    Text1.Font.Size = 20
    temp=Font.Size
    font.size=text1.font.size
    Text1.Height = TextHeight(Text1.text)
    Text1.Width = TextWidth(Text1.text)
    font.size=temp
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    Lively Member flint's Avatar
    Join Date
    Oct 2000
    Posts
    67
    Set the autosize property to true.

    Code:
    txtField.Autosize = True
    Flint

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