|
-
Nov 20th, 2001, 05:57 AM
#1
Thread Starter
New Member
Activex cannot create object
I've created a buttonset component for browsing data in a form. When I press exit button on that, it executes the code:
unload usercontrol.parent
when usercontrol.parent is the form on which it is placed. Sometimes it shows error:
error '429': Activex cannot create object
what could be the cause for this?
-
Nov 20th, 2001, 06:44 AM
#2
Unload UserControl
Unload Form
Don't unload the UserControl container form before you unload the control.
-
Nov 20th, 2001, 08:18 AM
#3
Thread Starter
New Member
No. It didn't work.
Thx, checking this out. But how is that it occurs once in a while?
No. It didn't work.
When I put in exit_click()
unload usercontrol
unload usercontrol.parent
it gives compile error 'invalid use of base class'.
When I put in exit_click()
unload me
unload usercontrol.parent
it gives Run-time error '361': Can't load or unload this object
Last edited by Gautam01; Nov 20th, 2001 at 08:36 AM.
-
Nov 24th, 2001, 10:28 PM
#4
Lively Member
It's not registered properly...
Get to a command prompt and use "regsvr32" (or is it "regsrv32" ) to register it.
Example:
Code:
regsvr32 MyControl.ocx
(I'm pretty sure it's "regsvr32".)
That should do it. I get that problem all the time. I found a little shell enhancement that lets me right-click and ActiveX object (whether its an OCX or DLL) and register it... SO much easier!
-AndySoft
[email protected]
[email protected] (Use the other one first!)
I use: NASM, HTML, Perl, PHP, JavaScript, Batch, TI-Basic (TI-83+), QBasic 1.1, QuickBASIC 4.5, QuickBASIC Extended 7.1, VB-WIN 6 Ent., and the rest of Visual Studio 6 Ent.  And who knows what else!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|