Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have bosch camera. i wanted to have my c# code for that,but in my code i couldnt have mouse event ((panel_mouse_down)) becuse i gave panel control to bosch.videoSDK library Now,what should i do...?

What I have tried:

<pre>m_axCameo = new Bosch.VideoSDK.AxCameoLib.AxCameo();

        panel1.Controls.Add(m_axCameo);
        m_axCameo.Dock = DockStyle.Fill;
        m_cameo = (Bosch.VideoSDK.CameoLib.Cameo)m_axCameo.GetOcx();
        DeviceConnector.ConnectResult += new Bosch.VideoSDK.GCALib._IDeviceConnectorEvents_ConnectResultEventHandler(DeviceConnector_ConnectResult);
Posted
Updated 20-Sep-20 11:13am

1 solution

Quote:
t in my code i couldnt have mouse event ((panel_mouse_down)) becuse i gave panel control to bosch.videoSDK library
Did you define a MouseDown EventHandler for the Panel ?

Consider placing/sizing the AxCameo component in code so some area of the Panel is visible, and can be clicked on ... rather than using DockStyle.Fill;

Try studying the C# examples provided by Bosch here: [^] under this heading: "Code Samples These C# code samples demonstrate core Bosch Video SDK functionality."

And research: [^]
 
Share this answer
 
v2
Comments
Mahdi Lolaki 21-Sep-20 2:47am    
yes i defined MouseDown EventHandler but it cant run.
BillWoodruff 21-Sep-20 6:19am    
Because the Panel is completely covered by the Bosch control ? If so, as I said, position/size the Bosch control so you expose some part of the panel.
Mahdi Lolaki 21-Sep-20 9:06am    
yes.How can i do that?
BillWoodruff 21-Sep-20 9:54am    
You study how to set the Location and Size of any Control placed inside another Control, Form, etc.

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