V.3.1
Creating custom VB6 controls

Some controls contained into this package may have bad iterations when used into Usercontrols.
This because VB6 cannot detect, in some cases, that the usercontrol is in Design or User mode so the control may appear running at design time (so you cannot move it in many cases).

Controls that may have problems are:
ctlUniTextBoxXP, ctlUniRichTextBoxXP, ctlUniListBoxXP, ctlUniListBoxExXP, ctlUniComboBoxXP

You can create your usercontrols making these steps:

1- Draw a control of the HexUniControls library (from the above list) into your usercontrol
2- Set the
ManualStart property to true so the control has to be started manually using the ExternalInitControl method
3- At the end of your
UserControl_ReadProperties write this code:

Private Sub UserControl_ReadProperties(PropBag As PropertyBag)

   '
   ' Your code here
   '


   'Starts the control manually
   If Ambient.UserMode Then
       HexUniControl1.ExternalInitControl
   End If

End Sub
http://www.hexagora.com
Thu, 22 Sep 2011 17:54:40 UT
Copyright 2003-11 by Lorenzi Davide