its from VB6
Code:Private Sub Form_Resize() On Error Resume Next txtData.Width = Me.MaximumSize.Width - (2 * txtData.Left) txtData.Height = Me.MaximumSize.Height - (2 * txtData.Top) End Sub
its from VB6
Code:Private Sub Form_Resize() On Error Resume Next txtData.Width = Me.MaximumSize.Width - (2 * txtData.Left) txtData.Height = Me.MaximumSize.Height - (2 * txtData.Top) End Sub
Probably need a little bit of fixing. (Did that in the browser) But that's the general idea.Code:Private Sub Form_Resize(ByVal sender As Object, ByVal e As EventArgs) txtData.Width = Me.Width - (2 * txtData.Position.X) txtData.Height = Me.Height - (2 * txtData.Position.Y) End Sub
thanks man +rep
would beCode:Private Sub Form_Resize(ByVal sender As Object, ByVal e As EventArgs)
for vb.net. I think. Might not be Me.Resize, but you need a Handles Me.somethingCode:Private Sub Form_Resize(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Resize
The handles on the textbox .left / .top could still be used. They are still in vb2008
thanks to all, it works now!