
ActiveX UserControl resize in Visio
Not sure if this is the right forum for this question but
here goes. Does anyone know of a
Visual Basic ActiveX
Control source code that shows how to handle the resize
event so that the UserControl will resize properly in a
Visio container in design and run mode? When I create a
control that resizes properly in a Visual Basic test form
and then drop it onto a Visio page the usercontrol area
appears offset from the shape grab handles rectangle, and
as the shape handle rectangle is moved around different
parts of the usercontrol area are revealed, instead of the
shape handles outlining the entire control area and the
control moving with the rectangle. Also resize events are
received by the control when toggling between run and
design mode that report different usercontrol height and
witdh values even though the control was left unchanges (
grab handles not touched ).