say i have a text box at the bottom of my main form called Status. Status has the same basic width as the main form (Main). I want it to work, so that when Main is resized, Status will automatically resize so its width equals the with of Main.
This is what i have right now:
Private Sub Main_Resize()
If Me.WindowState <> 0 Then
Exit Sub
End If
If Me.Height < 4000 Then
Me.Height = 4000
End If
If Me.Width < 4000 Then
Me.Width = 4000
End If
Status.Width = Main.Width - 100
Status.Refresh
Me.Refresh
End Sub
This however, doesnt work how i want it to. It seems to resize Status, but it does not show the new part of the textbox(it is as if it is covered by something).
Does anyone know how i can get this to work like i want it?
any help would be greatly appreciated
robbaggio
This is what i have right now:
Private Sub Main_Resize()
If Me.WindowState <> 0 Then
Exit Sub
End If
If Me.Height < 4000 Then
Me.Height = 4000
End If
If Me.Width < 4000 Then
Me.Width = 4000
End If
Status.Width = Main.Width - 100
Status.Refresh
Me.Refresh
End Sub
This however, doesnt work how i want it to. It seems to resize Status, but it does not show the new part of the textbox(it is as if it is covered by something).
Does anyone know how i can get this to work like i want it?
any help would be greatly appreciated
robbaggio