Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

error CS1656 when using AxLEADLib ocx
Started by cinquini at 06-26-2008 16:46. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  06-26-2008, 16:46
cinquini is not online. Last active: 6/26/2008 8:06:11 PM cinquini

Not Ranked
Joined on 06-25-2008
Posts 1
error CS1656 when using AxLEADLib ocx
Reply Quote
Hi

I'm developing an VS 2k5 CS windows form application. I'm using AxLEADLib ocx.

During compilation, I get the following error:
error CS1656: Cannot assign to 'Size' because it is a 'method group'

After comment the line (marked with *** in the code below), the code is compiled normally, and I can execute the application with no problems.

But every time I navigate to and from the form that has this OCX on it, this line is uncommented by the VS editor and the error come out again.

this.axLEAD1.Location = new System.Drawing.Point(0, 0);
this.axLEAD1.Name = "axLEAD1";
this.axLEAD1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLEAD1.OcxState")));
this.axLEAD1.Size = new System.Drawing.Size(646, 139);   // **** HERE'S THE PROBLEM
this.axLEAD1.TabIndex = 4;
this.axLEAD1.TabStop = false;

Leadtools version is 14.5.0.75
VS is 2005
framework is 2.0
and I'm referencing the following assemblies in the code:

Leadtools.dll
Leadtools.Codec.dll
Leadtools.Winforms.dll

How to avoid the misbehavior?

   Report 
  06-26-2008, 17:01
GregR is not online. Last active: 8/29/2008 2:25:56 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,542
Re: error CS1656 when using AxLEADLib ocx
Reply Quote
This is a known problem, please see this forum post:

http://support.leadtools.com/SupportPortal/cs/forums/7578/ShowPost.aspx

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » DotNet » error CS1656 when using AxLEADLib ocx

Powered by Community Server, by Telligent Systems