Form Resize doesnt repaint |
Post Reply |
Author | |
aelsmore
Newbie Joined: 27 July 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 27 July 2009 at 8:07am |
When my forms are Skinned and I try to stop a user from resizing a form smaller that I want the borders of the form disappear until you move the form.
this is my code:
Private Sub Form_Resize()
If Me.Width < 4000 Then Me.Width = 4000 Exit Sub End If
If Me.Height < 3000 Then Me.Height = 3000 Exit Sub End If
End Sub |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
Use the Resizer-Control instead to prevent wrong resizing, you have than to do nothing.
In VB6 change the ScaleMode to Pixels before using Resizer.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |