|
-
Jul 11th, 2007, 08:21 PM
#1
Thread Starter
Hyperactive Member
Re: I need to make my form not resize to anything smaller than...
I removed that and it crashes...
Visual Basic Rules!!!!! 
-
Jul 11th, 2007, 08:44 PM
#2
Re: I need to make my form not resize to anything smaller than...
 Originally Posted by vbman213
I removed that and it crashes...
You do have to be careful when sub classing
Did you remove
Code:
'Keep the form only as wide as MAX_WIDTH
If (r.RIGHT - r.Left > MAX_WIDTH) Then
Select Case wParam
Case WMSZ_LEFT, WMSZ_BOTTOMLEFT, WMSZ_TOPLEFT
r.Left = r.RIGHT - MAX_WIDTH
Case WMSZ_RIGHT, WMSZ_BOTTOMRIGHT, WMSZ_TOPRIGHT
r.RIGHT = r.Left + MAX_WIDTH
End Select
End If
'Keep the form only as tall as MAX_HEIGHT
If (r.Bottom - r.Top > MAX_HEIGHT) Then
Select Case wParam
Case WMSZ_TOP, WMSZ_TOPLEFT, WMSZ_TOPRIGHT
r.Top = r.Bottom - MAX_HEIGHT
Case WMSZ_BOTTOM, WMSZ_BOTTOMLEFT, WMSZ_BOTTOMRIGHT
r.Bottom = r.Top + MAX_HEIGHT
End Select
End If
because thats what I meant and it works for me.
-
Jul 12th, 2007, 11:37 AM
#3
New Member
Re: I need to make my form not resize to anything smaller than...
The other way around is to put the resize command at Mouse Up event. So let the user resize the window as they like but once the Mouse up event occurs, it will be back to the desired size.
At lease there will no flickering, i promise
-
Jul 12th, 2007, 05:30 PM
#4
Banned
Re: I need to make my form not resize to anything smaller than...
 Originally Posted by vbman213
I removed that and it crashes...
i believe this is a bugs
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|