Click here to Skip to main content
15,919,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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.
 
Share this answer
 
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
You probably haven't set the MDIParent property on the form.
 
Share this answer
 
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 ?
say if u have
main 
as your main form and
child
as your child form

the code

child.mdiparent=parent
child.show
 
Share this answer
 
Hi,
Thanks 4 prompt reply,
but i have set it.

for confirmation Can u tell me what i have to set it to ?
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900