This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Latebound overload resolution cannot be applied to AddImage because the accessing instance is an int

Hi, Anyone can help me on this problem?

I hv put this: listView.AddImage(thumbnail, _key) into
BitmapListItem Class
Public Sub EvaluateMethod(ByVal methodIndex As Integer) Implements Aurigma.GraphicsMill.WinControls.IQueueItem.EvaluateMethod
but I get this error:
Latebound overload resolution cannot be applied to AddImage because the accessing instance is an interface type

May I know what happen? Actually I have copy exactly same from
Hello,

It seems that this is a new bug/feature of the Visual Studio 2005 VB.NET compiler (Latebound overload resolution...). Workaround described in the article works well in my test application.

I replaced this call:
listView.AddImage(thumbnail, _key)
with the following one:
listView.AddImage(CType(thumbnail, Aurigma.GraphicsMill.Bitmap), _key)
I hope it will works for you as well.
Hi Alex,

Thanks , it works fine for me as well.
🙂
You are welcome 😉