Re: Control problem
From: MikeD (nobody_at_nowhere.edu)
Date: 08/14/04
- Next message: Dwarf: "How to call function in user control from module"
- Previous message: Jim Bunton: "Re: List Box With Columns Thanks + comment"
- In reply to: Ivan Debono: "Control problem"
- Next in thread: Ivan Debono: "Re: Control problem"
- Reply: Ivan Debono: "Re: Control problem"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 14 Aug 2004 09:20:11 -0400
"Ivan Debono" <ivanmdeb@hotmail.com> wrote in message
news:%23LYClJcgEHA.904@TK2MSFTNGP09.phx.gbl...
>
> I've compiled a control with 'Requires license key' option checked. A VBL
> file created and everything worked fine. Now I decided that I don't want
to
> use licensing so I unchecked the option and compiled the control.
>
> Now my problem is that when I run the program I get an error that a
license
> key is required.
Does your control use any constituent controls that require a license key
AND are you adding your control dynamically? If the answer to both those
questions is "yes", then your control must require a license key. You
should be able to manually add the license key to the Licenses collection if
you want. See the following:
INFO: Licensing Issues Related to User Controls Created with Visual Basic
http://support.microsoft.com/default.aspx?scid=kb;en-us;274754&Product=vb6
If the answer to either or both questions is "no", then I don't have any
definite suggestions. You might have to turn binary (or project)
compatibility off, recompile, and then set binary compatibility again.
That's just a guess. More information would be helpful, such as what
constituent controls you're using, how your control is used (placed on a
container or dynamically added, for example), and the exact error message
and number.
Other articles that may be insightful:
PRB: Can't Create VB ActiveX Control with Embedded Licensed Ctrl
http://support.microsoft.com/default.aspx?scid=kb;en-us;175325&Product=vb6
HOWTO: What is the Licenses Collection Used For?
http://support.microsoft.com/default.aspx?scid=kb;en-us;188577&Product=vb6
INFO: Dynamically Add UserControls That Require Run-Time Licenses
http://support.microsoft.com/default.aspx?scid=kb;en-us;241126&Product=vb6
FIX: Cannot Dynamically Add a Non-Licensed MFC Control
http://support.microsoft.com/default.aspx?scid=kb;en-us;193025&Product=vb6
You might want to search the KB yourself, as there are a few more issues
related to ActiveX controls and licensing.
Mike
- Next message: Dwarf: "How to call function in user control from module"
- Previous message: Jim Bunton: "Re: List Box With Columns Thanks + comment"
- In reply to: Ivan Debono: "Control problem"
- Next in thread: Ivan Debono: "Re: Control problem"
- Reply: Ivan Debono: "Re: Control problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|