Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Form Resize doesnt repaint
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Form Resize doesnt repaint

 Post Reply Post Reply
Author
Message
aelsmore View Drop Down
Newbie
Newbie


Joined: 27 July 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote aelsmore Quote  Post ReplyReply Direct Link To This Post Topic: Form Resize doesnt repaint
    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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2009 at 10:01am
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.157 seconds.