Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
unrecognize  
#1 Posted : Tuesday, December 4, 2007 12:05:50 PM(UTC)
unrecognize

Rank: Member

Groups: Member
Joined: 11/5/2007(UTC)
Posts: 10

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 [url=http://www.aurigma.com/Support/DocViewer/27/CreatingCustomListItem.htm.aspx][/url]

Alex Kon  
#2 Posted : Tuesday, December 4, 2007 1:47:52 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups:
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
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:

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

Edited by user Monday, December 17, 2007 9:16:44 AM(UTC)  | Reason: Not specified

unrecognize  
#3 Posted : Tuesday, December 4, 2007 2:21:44 PM(UTC)
unrecognize

Rank: Member

Groups: Member
Joined: 11/5/2007(UTC)
Posts: 10

Hi Alex,

Thanks , it works fine for me as well.

:)

Alex Kon  
#4 Posted : Wednesday, December 5, 2007 2:03:21 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups:
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
You are welcome ;)
Users browsing this topic
Guest
Forum Jump  
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.