This. The f2. TabPage1. Controls. The Add (A);//in f2 form tabPage1 above to add A window
A.S how ();//here show A form not to come out, need to show the f2 again can show A window, then tabPage1 problem is opened two f2 form; Have a great god has a good way to help busy with, online etc. Thank you very much!!!!!!
//f2. The Show ();
CodePudding user response:
A. the TopLevel set to false?CodePudding user response:
Set to false, tried many ways doesn't work!CodePudding user response:
@ Bridge_go A.T opLevel=false;A.S well ();//activate
A.R efresh ();//can't refresh
Is non-negotiable, ask god to help
CodePudding user response:
Demonstrated in the TabPage TabControl form this operation we have used N years, never met you, the post code, we analyze,CodePudding user response:
///according to the corresponding equipment object binding controlsPrivate void __SelectDeviceAndShow (int nCamID)
{
The switch (nCamID)
{
Case 0:
{
M_listCCamerInfo [nCamID]. M_objImageShowFrom. MdiParent=this;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. StartPosition=FormStartPosition. Manual;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. Location=new Point (0, 0);
This. The f2. TabPage1. Controls. The Add (m_listCCamerInfo [nCamID] m_objImageShowFrom);//in the f2 form tabPage1 add
//"m_listCCamerInfo [nCamID] m_objImageShowFrom" window
M_listCCamerInfo [nCamID]. M_objImageShowFrom. The Show ();//here show A form not to come out, need to show the f2 again can again tabPage1 displayed on A window,
//the problem is opened two f2 form; Have a great god have good method
//to help solve please, thank you very much, such as online!!!!!!
//f2. The Show ();
}
break;
Case 1:
{
M_listCCamerInfo [nCamID]. M_objImageShowFrom. MdiParent=this;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. StartPosition=FormStartPosition. Manual;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. Location=new Point (390, 0);
This. The f2. TabPage1. Controls. The Add (m_listCCamerInfo [nCamID] m_objImageShowFrom);
M_listCCamerInfo [nCamID]. M_objImageShowFrom. The Show ();
}
break;
Case 2:
{
M_listCCamerInfo [nCamID]. M_objImageShowFrom. MdiParent=this;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. StartPosition=FormStartPosition. Manual;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. Location=new Point (0, 330);
This. The f2. TabPage1. Controls. The Add (m_listCCamerInfo [nCamID] m_objImageShowFrom);
M_listCCamerInfo [nCamID]. M_objImageShowFrom. The Show ();
}
break;
Case 3:
{
M_listCCamerInfo [nCamID]. M_objImageShowFrom. MdiParent=this;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. StartPosition=FormStartPosition. Manual;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. Location=new Point (390330);
This. The f2. TabPage1. Controls. The Add (m_listCCamerInfo [nCamID] m_objImageShowFrom);
M_listCCamerInfo [nCamID]. M_objImageShowFrom. The Show ();
}
break;
Default:
break;
}
}
CodePudding user response:
@ datafansbj my code is the pictures of the camera operation, this code __SelectDeviceAndShow position is in the corresponding form display video camera control, trouble to help analyze the great god, thank you very much!CodePudding user response:
This is a form? F2 form this, f2 form TabControl, f2 TabControl A TabPage has form A,You will form A try with the form controls such as Label can be displayed, this kind of problem is usually not initialize the good form, can add: form Dr. Isible=true,
CodePudding user response:
M_listCCamerInfo [nCamID]. M_objImageShowFrom. MdiParent=this;It try to get rid of
CodePudding user response:
@ datafansbj tried to add the Label also Show not to come out, form set Dr. Isible=true, also not line, or need to Show on the f2 form again to Show!CodePudding user response:
, the operation of the @ Bridge_go removed after prompt to top control is added to the control,CodePudding user response:
TopLevel set to falseCodePudding user response:
@ Bridge_go set after the also not line,CodePudding user response:
After you set the code to have a lookCodePudding user response:
Case 0:{
.//m_listCCamerInfo [nCamID] m_objImageShowFrom MdiParent=this;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. TopLevel=false;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. StartPosition=FormStartPosition. Manual;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. Location=new Point (0, 0);
This. The f2. TabPage1. Controls. The Add (m_listCCamerInfo [nCamID] m_objImageShowFrom);
M_listCCamerInfo [nCamID]. M_objImageShowFrom. Visible=true;
M_listCCamerInfo [nCamID]. M_objImageShowFrom. The Show ();
//f2. The Show ();
}
break;
CodePudding user response:
http://blog.csdn.net/w1wqw/article/details/44356439CodePudding user response:
According to you now that the code is certainly can, how are you running interface is nowCodePudding user response:
CodePudding user response:
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull