|
-
Jun 20th, 2002, 03:01 AM
#1
Thread Starter
Addicted Member
mdi child ?
hi,
i have an mdi parent form and have child forms to load on that.
problem is that the mdi parent has a picture box which i have used to display information so when i load the child forms the picture box is only shown and not the child form.
i cannot remove the child property as i need it to be in front of the screeen and the mdi child to be disabled when a child form is active.
also i tried opening the child forms as vbmodal but it says mdi child forms cannot be opened modally.
pls help.
ciao,
Nihar
VB 6 Enterprise SP5;
SQL Server 2000
-
Jun 20th, 2002, 03:13 AM
#2
Hyperactive Member
There should be space left open for the child windows. The parent of the child windows is the mdi form, not the picturebox, so they won't appear in that control. It will stay before the child windows.
-
Jun 20th, 2002, 03:37 AM
#3
Thread Starter
Addicted Member
yes but is there a solution to this?
i have create a background containing information which is displayed to the user when the mdi parent form loads.
now i need to load child forms at the same time keep the background picturebox in place as hiding it makes it look bad.
ciao,
Nihar
VB 6 Enterprise SP5;
SQL Server 2000
-
Jun 20th, 2002, 03:40 AM
#4
Hyperactive Member
Paint the info for the users on the mdi-form itself.
-
Jun 20th, 2002, 04:17 AM
#5
MDI======SHEMDI! GET STUFFED!
Why use an MDI form???
They are only designed for apps like Word, an application that can have many of the same things open...
I hate MDI forms, they are the bane of my programming carreer!
You can use vbModal with MDI child forms!!! Hahahaha...U have just found the first problem with using MDI forms... There are many more you will find...
Why not use a normal for for the background to display info? Just get rid of the MDI form....????
-
Jun 20th, 2002, 04:23 AM
#6
Can you try to change the ZOrder of the childforms on load.
And place the ZOrder of the picturebox accordingly.
-
Jun 20th, 2002, 05:33 AM
#7
Thread Starter
Addicted Member
Swatty tried Zorder. doesnt work.
Wokawidget i know mdiforms are a bane but theres no way out for me right now.
XaOz i cant add controls to mdimain without using the picturebox.
ciao,
Nihar
VB 6 Enterprise SP5;
SQL Server 2000
-
Jun 20th, 2002, 05:43 AM
#8
Did you try different numbers on it ??
ZOrder I mean.
I know there must be given a number , don't know if it the top should be 0 or the max number of objects loaded.
-
Jun 20th, 2002, 06:48 AM
#9
Thread Starter
Addicted Member
i dont know what u mean by setting the zorder to higher number.
its a method and not a property. how do i change it?
ciao,
Nihar
VB 6 Enterprise SP5;
SQL Server 2000
-
Jun 20th, 2002, 06:52 AM
#10
When you load the form.
form1.show
form1.ZOrder 0
-
Jun 20th, 2002, 07:26 AM
#11
Thread Starter
Addicted Member
neaahh it doesnt work either.
changed zorder to 0,1,more and also changed zorder of picturebox.
doesnt work.
ciao,
Nihar
VB 6 Enterprise SP5;
SQL Server 2000
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
|