06-26-2008, 16:46
|
cinquini
Joined on 06-25-2008
Posts 1
|
error CS1656 when using AxLEADLib ocx
|
 
 
|
|
|
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
|
|
|
|