Fix bug when copying ImageList ActiveX controls from one form to another
I've noticed recently that copying ActiveX control of type MSComctlLib.ImageListCtrl.2 (Microsoft ImageList Control, version 6.0) from one form to another is buggy.
Whenever I've attempted to copy an ImageList from one form to another recently, the object is copied but I see an error message (usually repeated twice) and the control comes in at 8cm x 5cm instead of its usual 1.005cm x 1.005cm. Any attempt to resize it results in the same error message, which usually comes up twice, presumably once for each dimension.
Actually, even if I try resizing the original object which is the correct size of 1.005cm x 1.005cm, I get the same error message.
The error message is:
Sorry, an unexpected error occurred. Please exit and restart (application name here).
If you've made recent design changed, please save your work before you exit.