I don't have this problem on my machine, but when testing the installation on another machine (well Virtual PC) i get the error:
Error 429 - ActiveX component can't create object
I know what this error means, but I don't know why I am getting it.
I have the following code in my MDIForm Load, which refers to a dll (vbsystraytools.dll) and after checking on Virtual PC, this dll is in the system32 folder and I assume it's registered (not quite sure how to check this).
BTW: lngSysTray is a registry value for the option of minimising to the system tray
Code:'Declarations Public WithEvents mobjSysTray As vbSysTrayTools.SysTray 'Form_Load Set mobjSysTray = New vbSysTrayTools.SysTray Set mobjSysTray.ImageList = imgMO With mobjSysTray .Icon = 1 .Menu.Add "Show", "SHOW" .Menu.Add "Hide", "HIDE" .EnableMenu = True End With If lngSysTray = 1 Then mobjSysTray.Visible = True Else mobjSysTray.Visible = False End If




Reply With Quote