Click here to Skip to main content
14,362,565 members
Rate this:
Please Sign up or sign in to vote.
See more:
hi Friends,
I am working with multiple forms.
I am facing problem in opening child form of the child.

1. TransMast.vb - MDI Form,
2. Contacts.vb - Windows Form
3. Find.vb - Windows Form

While i run the application the contacts.vb opens inside the TransMast.vb, but when i click Find button which is set in Contacts.vb to find contacts from database, the Find.vb opens outside the TrnasMast.vb.

Can anyone tell me what changes i have to make ?
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 3

Place it in Find Button
Find fin=new Find()
fin.MdiParent=this.MdiParent;
Fin.show()


if u haven't find solution,just place ur code for better understanding.
   
Comments
Dhavall Vadher 26-Jul-10 2:33am
   
Hey Pawan,
Thank you very very much,
I solved it using your idea.
I was facing this problem since 3-4 days, you solved it.
Thanks again
Dhavall Vadher 26-Jul-10 3:06am
   
Reason for my vote of 5
Solved my problem
Rate this:
Please Sign up or sign in to vote.

Solution 1

You probably haven't set the MDIParent property on the form.
   
v2
Comments
Sandeep Mewara 24-Jul-10 10:04am
   
Comment from OP: Thanks 4 prompt reply,
but i have set it.

for confirmation Can u tell me what i have to set it to ?
Rate this:
Please Sign up or sign in to vote.

Solution 4

say if u have
main 
as your main form and
child
as your child form

the code

child.mdiparent=parent
child.show
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Hi,
Thanks 4 prompt reply,
but i have set it.

for confirmation Can u tell me what i have to set it to ?
   
Comments
Sandeep Mewara 24-Jul-10 10:04am
   
Reason for my vote of 1
Use Comment feature to interact with an Answer. Posting comment will also notify via email.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100