|
-
Mar 22nd, 2000, 07:31 PM
#1
Thread Starter
Lively Member
-
Mar 22nd, 2000, 08:06 PM
#2
Fanatic Member
Re: Resize
In the resize event of the mdi form use the following
form1.height = me.height * .8
this will always keep the form at 80% of the height
-
Mar 23rd, 2000, 02:31 PM
#3
Thread Starter
Lively Member
Well, as you can see from the code I added, that's about what I did ...
But the code doesn't work when the form is maximized
-
Mar 23rd, 2000, 04:25 PM
#4
The problem is that the Resize event is fired before the picture box is resized within the MDI form.
The solution is to use the ScaleHeight property of the MDI form instead of the height property of the picture box.
Code:
Private Sub MDIForm_Resize()
TV1.Top = 0
TV1.Height = 0.8 * Me.ScaleHeight
End Sub
Good luck!
-
Mar 23rd, 2000, 06:07 PM
#5
Thread Starter
Lively Member
Thanx a lot for your help ...
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
|