Print Page | Close Window

Form Resize doesnt repaint

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=14841
Printed Date: 13 May 2024 at 10:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Form Resize doesnt repaint
Posted By: aelsmore
Subject: Form Resize doesnt repaint
Date 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



Replies:
Posted By: Baldur
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net