Why Doesn't this code work?
VB Code:
Private Sub Form_Resize() With TxtTEXT .Left = 100 .Height = 100 .Width = Me.Width - 100 .Height = Me.Height - 100 End With End Sub
Printable View
Why Doesn't this code work?
VB Code:
Private Sub Form_Resize() With TxtTEXT .Left = 100 .Height = 100 .Width = Me.Width - 100 .Height = Me.Height - 100 End With End Sub
Does The Textboxes .With Not Include the Scrollbars?
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?
Nevermind I see you are moving it to the bottom right corner.
I Want the textbox 100 away from all sides of the form (Centered)
VB Code:
Private Sub Form_Resize() TxtTEXT.Move 100, 100, Me.ScaleWidth - 200, Me.ScaleHeight - 200 End Sub
Thanx Edneeis