LEADTOOLS Support
General
General Questions
Problem attaching a toolbar OCX control to Vector OCX control
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, June 12, 2006 10:44:23 PM(UTC)
Groups: Registered
Posts: 4
I am trying to set Vector Control's ToolbarControl property to LeadToolbar object but it throws COMException. My environment is C# 2005 and my code to create the toolbar and attach it with Vector control is as follows.
LEADToolBar1.CreateToolbar(LEADVector.Window, "Vector Tools", 4);
LEADToolBar1.RowCount = 6;
LEADToolBar1.XPosition = 10;
LEADToolBar1.YPosition = 10;
LEADVector.VectorUserMode = LEADVectorLib.tagVectorUserModeConstants.VECTOR_USERMODE_AUTO;
LEADVector.UndoLevel = 5;
LEADVector.ToolbarControl = (object)LEADToolBar1;
LEADToolBar1.CtlVisible = true;
LEADVector.Visible = true;
In the above code LeadVector is an object of type LEADVector and LEADToolBar1 is of type LEADToolbar.
The above code throws exception of type COMException with HRESULT : 0x800A4E2D
Please help me out.
Regards.
Usman Qadri
#2
Posted
:
Wednesday, June 14, 2006 12:19:51 PM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Usman,
The property CtlVisible indicates you might be trying to put the toolbar object on a form. If that's the case, don't do that. Instead, create it using the 'new' keyword and the code should work.
If you still can't get it to work, put the code in a small test project and send it to
support@leadtools.com or post it here and we will check it for you.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
General
General Questions
Problem attaching a toolbar OCX control to Vector OCX control
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.