YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Please translate this statement to VB Options
Jack
#1 Posted : Wednesday, July 28, 2010 3:37:42 PM
Rank: Newbie

Groups: Registered

Joined: 7/28/2010
Posts: 3
Points: 9
Location: NL

Hi,

I have some trouble to find the correct translation of the following statement from C# to VB:

b0.OnDataChanged += new PublicDelegates.OnDataDG(b0_OnDataChanged);

Who can help me?

Jack
#2 Posted : Thursday, July 29, 2010 6:22:35 PM
Rank: Newbie

Groups: Registered

Joined: 7/28/2010
Posts: 3
Points: 9
Location: NL

I found it myself:

AddHandler b0.OnDataChanged, AddressOf OnNewData

The name OnNewData is not critical as long as you defined a function by that name with the correct signature. That was where i did go wrong. My function signature was not correct.

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.

Black Crystal theme created by The PineCone.
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.042 seconds.