Results 1 to 7 of 7

Thread: resizing

  1. #1

    Thread Starter
    Hyperactive Member ZeroCool's Avatar
    Join Date
    Feb 2002
    Location
    In front of my computer
    Posts
    423

    resizing

    Why Doesn't this code work?

    VB Code:
    1. Private Sub Form_Resize()
    2. With TxtTEXT
    3. .Left = 100
    4. .Height = 100
    5. .Width = Me.Width - 100
    6. .Height = Me.Height - 100
    7. End With
    8. End Sub
    Visual Baisc 6 (SP5)
    Windows Xp

  2. #2

    Thread Starter
    Hyperactive Member ZeroCool's Avatar
    Join Date
    Feb 2002
    Location
    In front of my computer
    Posts
    423
    Does The Textboxes .With Not Include the Scrollbars?
    Visual Baisc 6 (SP5)
    Windows Xp

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Are you trying to move it off of the form?

    That's what that code looks like it does because it refers to ME (the form).

    Are you getting an error? How does it NOT work?

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Nevermind I see you are moving it to the bottom right corner.

  5. #5

    Thread Starter
    Hyperactive Member ZeroCool's Avatar
    Join Date
    Feb 2002
    Location
    In front of my computer
    Posts
    423
    I Want the textbox 100 away from all sides of the form (Centered)
    Visual Baisc 6 (SP5)
    Windows Xp

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    VB Code:
    1. Private Sub Form_Resize()
    2.      TxtTEXT.Move 100, 100, Me.ScaleWidth - 200, Me.ScaleHeight - 200
    3. End Sub

  7. #7

    Thread Starter
    Hyperactive Member ZeroCool's Avatar
    Join Date
    Feb 2002
    Location
    In front of my computer
    Posts
    423
    Thanx Edneeis
    Visual Baisc 6 (SP5)
    Windows Xp

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