Dear Sir/Madam,
We have a SmartClient workspace plugin.
We use a tabControl inside PluginsWorkSpaceViewItemUserControl.
Inside each tabPage, we have a pictureBox to draw graphics.
In one of pictureBox/tabPage, we have several smaller pictureBox to display image.
The workspace plugin works perfect when we drag the workspace tab out of SmartClient to be a separate window.
Closed the separated workspace window and drag the workspace tab out again, it still works perfect.
The problem is when we click the workspace tab and leave it displays inside SmartClient window.
The plugin’s PluginsWorkSpaceViewItemUserControl_Load hits an exception:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
When this exception happens, EnvironmentManager.Instance.Log does not capture any log information from PluginsWorkSpaceViewItemUserControl_Load.
The log information from PluginsWorkSpaceViewItemUserControl_Load is captured properly when it works outside SmartClient window.
This problem happens at all 3 version we have which are 2019 R1, 2020R2 and 2020 R3.
Please advise how to fix this problem.
Meanwhile, please advise us how to disable the click and doubleClick to this workspace tab inside SmartClient window.
Thus, only allow the workspace tab to be dragged out from SmartClient window.
Thank you.
Regards,
Jinmin