Calling an ActiveX DLL in a UserControl
Hi all,
we have been looking out for a solution for the problem mentioned below.... PLEASE HELP
We have a problem with us here. We have created a dll which will externalize the font for an internationalization project. Based on the LocaleID it will change the language for the form.. This works perfectly in the form once the DLL is registered and referenced.
We would like to implement the same in a Usercontrol which we have by the dozen in each VBP. We are trying to do this in the UserControl_Initialize which gives an error
The code in the externalization in the class module is as follows:
ChangeFont.dll > Class Module
Public Sub SetFont(ByRef objClient As Object)
If TypeOf objClient Is Form Then
Call mdlChangeFont.SetFormFonts(objClient) 'For Forms
Else
Call mdlChangeFont.SetControlFonts(objClient) 'For UserControl
End If
End Sub
For the Form we implement it in the Form_Load() as:
Private Sub Form_Load()
Dim ext As New ChangeFont.clsChangeFont
ext.SetFont Me
End Sub
Please let me know in which event of the UserControl should this be put whether UserControl_Initialize or UserControl_InitProperties or UserControl_ReadProperties or should we go ahead with the tedious process of changing the Font and the script in the UserControl to MS UI Gothic and Japanese.
This is an urgent requirement... HELP.............................
Regards
Arvind Krishnan
|