I have a problem accessing the ActiveX control msmask32.ocx when creating MaskedEdit-components dynamically.
The program has to run on a machine where only the .NET-Framework is installed. The msmask32.ocx is registered. Static programed MaskedEdit's work fine there.
(On my machine with the dev.env. no problem occurs!)
This is my class:
Public Class QuestTextPanel
Inherits System.Windows.Forms.Panel
...
Private Sub init(ByVal qNr As Integer)
...
Select Case question.kind
...
Case 3
Dim dateText As AxMSMask.AxMaskEdBox = _
New AxMSMask.AxMaskEdBox
dateText.Parent = Me
dateText.Mask = "####-##-##"
...
End Select
End Sub
Here the following error occurs:
"You do not have a licence to use this ActiveX Control!"
Where is the bug?
The program has to run on a machine where only the .NET-Framework is installed. The msmask32.ocx is registered. Static programed MaskedEdit's work fine there.
(On my machine with the dev.env. no problem occurs!)
This is my class:
Public Class QuestTextPanel
Inherits System.Windows.Forms.Panel
...
Private Sub init(ByVal qNr As Integer)
...
Select Case question.kind
...
Case 3
Dim dateText As AxMSMask.AxMaskEdBox = _
New AxMSMask.AxMaskEdBox
dateText.Parent = Me
dateText.Mask = "####-##-##"
...
End Select
End Sub
Here the following error occurs:
"You do not have a licence to use this ActiveX Control!"
Where is the bug?