I used the ProgID tool to make sure I was setting up the projectname and controlname correctly.
Details:
AMTextbox.ocx
ProgID: AMTextbox.txtbox
Method Declaration:
.AMTextbox ([nLeft As Integer = 100], [nTop As Integer = 100], [nWidth As Integer = 150], [nMaxLen As Integer = 50])
- Code: Select all
'STARTUP Tab Code:
Const PROGRAM_ID = "AMTextbox.txtbox"
- Code: Select all
'Frame Properties Code:
Component("txtbox").Object.AMTextbox 100,100,150,50
Error1: The component named "txtbox" could not be found.
Error2: Object required: 'Component(...)'
Any ideas?