Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ctTree control could not be opened in design mode

Status
Not open for further replies.

sqlpro

Programmer
Dec 30, 2003
297
NZ
Hi friends
has anyone used ctTree control?

I am having problem with Cttree control(when i am trying add control on a form i get following message like
"CLASS NOT REGISTERED"

but previously we created this control exclusively through code and having no problems
but now i am trying add control in design mode and getting abv error.
u guys have any ideas plz...
(i am using VFP8)

Thanks for any ideas.

cheers
 
Sqlpro,

Forgive me if this is obvious, but have you tried registering the control? To do so, do the following in the Windows Run dialogue:

REGSVR32 c:\system\xxx.ocx

(substituting the correct name and path of the control's OCX file).

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Thanks for post Mike.
Actually i tried that too.when i run abv command it gave
me succeeded message.
but i try use the control in design mode i get message License not found!!

cheers
 
using CREATEOBJECT() to instantiate a control requires a design-time license for that control, whether or not any design-time features are being used.

What you can do is put the control in a form, store that form as a class, then instantiate that form-class, and pick the control off of the form.

Thank VB "everything must be visual" mentality for this irritation...
 
Hi wgcs
---
What you can do is put the control in a form
---

how can i put control in s form?u mean thr code?
Thanks
Rajani

cheers
 
No, use the class designer to create a sobclass of "form" which has an instance of the ctTree control on it. Save that class in a VCX, then use:
Code:
SET CLASSLIB TO mylib.vcx
loFrm = CREATEOBJECT('myForm')
loCtrl = loFrm.ActiveXTreeControl
 
Thanks wgcs
I'll give it a try :)

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top