Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, June 12, 2006 10:44:23 PM(UTC)
usmanqadri

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
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, June 14, 2006 12:19:51 PM(UTC)

Amin  
Amin

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.
LEAD Logo
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.050 seconds.