Unicode Controls & Classes for VB6 - Version 4

ctlUniListBoxExXP.ExternalInitControl Method

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

Check this function for a solution sample

Syntax
Public Sub ExternalInitControl ()
Parameters
Parameter Description
Remarks
You can create your usercontrols following 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