February 18th, 2013, 10:21 AM
Elements of a toolstrip witin an usercontrol get deleted when copying/pasting it.
I have an usercontrol that contains a toolstrip. The toolstrip is exposed through the usercontrol by a readonly property 'HostStrip' with DesignerSerializationVisibility.Content attribute. In this way we can handle the toolstrip and its contents from the usercontrol.
While using the usercontrol in an application, after adding the elements of the toolstrip, if I copy the whole usercontrol and paste it somewhere else, the elements of the toolstrip get deleted. I need to add them all over again. Why is this happening and can it be solved?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.