|
-
Apr 25th, 2001, 03:43 PM
#1
Thread Starter
Addicted Member
MDI child window sizing...
Hey people, can someone tell me me how or give me a link to where i can find info on sizing child forms when i resize my mdi form? What I want to happen is, when I open my MDI and I resize it, I want all the child forms in that MDI to resize also...I tried some stuff already, but it doesnt work....any help appreciated.
Ah read ur *****scope and eat some *****durrrvs!
-
Apr 25th, 2001, 05:23 PM
#2
Thread Starter
Addicted Member
nm, i figured it out, thanks anyway guys
Ah read ur *****scope and eat some *****durrrvs!
-
Apr 26th, 2001, 05:10 PM
#3
New Member
can you share your experience with us Thanks
-
Apr 26th, 2001, 05:21 PM
#4
Thread Starter
Addicted Member
Originally posted by vbfan928
can you share your experience with us Thanks
it's simple really...in your mdi, in the resize event, call a function in the child form
in the child form's function use the move function so that the width and height are adjusted according to the ratio of the child form and the mdi
something like this
public sub moveMe()
move 0, 0, width, height
end sub
Ah read ur *****scope and eat some *****durrrvs!
-
Apr 26th, 2001, 05:39 PM
#5
Code:
Private Sub MDIForm_Resize()
Form1.Width = MDIForm1.Width / 2
Form1.Height = MDIForm1.Height / 2
End Sub
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
|