Click here to Skip to main content
15,917,731 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi
i have a project on vb.net i had make a form of the mainpage and i put menue strip on it and i make video .when the user open the main page the video will display.the main problem is if the user select from the menue strip another form the form will open separatley(outside the mainpage).i want it to open inside the mainpage insted of the vedio....?

this is the code;
VB
carcontrolpanel.MdiParent = Me
       carcontrolpanel.Show()



i make it but the form will appear on the back of the video it will be invisble for user
so it need to stop video and display the other form but how?
the error is not the code
Posted
Updated 1-Apr-12 10:58am
v4
Comments
Sergey Alexandrovich Kryukov 1-Apr-12 15:38pm    
Not clear. And not even a question, despite the question mark. "I want..." is not a question, and even what you want is not clear.
--SA
dr.dream 1-Apr-12 16:43pm    
the people who have knowledge on vb.net will understand the question
Sergey Alexandrovich Kryukov 1-Apr-12 20:26pm    
Apparently, this is not true.
--SA
Wendelius 1-Apr-12 15:39pm    
It would greatly help if you would post the current code you have.
dr.dream 1-Apr-12 16:41pm    
it is not by coding it is just to change from the properties to set the main page as parent and the other form as child the problem is i have vedio and i can not do this thing

Without detailed info about the code and the solution, sounds like you create a new instance of the main form.

Instead, if you want to replace the currently playing video on the same form, set the player in current form to show the video of your selection.
 
Share this answer
 
Comments
Wendelius 1-Apr-12 16:52pm    
Based on your code it seems that the carcontrolpanel is a form. So you create a new for and show it inside a MDI parent. In this scenario you're supposed to get a new window since MDI parent can host several MDI children.

If you want to use just a single window, do not use MDI.
dr.dream 1-Apr-12 17:06pm    
yes it must be single window
mainpage (parent)
carcontrolpanel(chid)
i have the result when i delete the video from the mainpage.when i put the video the child will appear on the back of the video so how to fix this problem?
Though question is not very clear but I believe this is what you are looking for:

VB
childform.MdiParent = MDIformName

childform.WindowState = FormWindowState.Maximized

childform.Show()


hope it helps...
 
Share this answer
 

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