How to change c# to vb codes??

Apr 5, 2010 at 11:17 AM

Dear Brian Peek :

Could you tell me how to do this as titled?

BeginInvoke((MethodInvoker)delegate() { lblTrackingUtil.Text = util.ToString("f0"); });

Thanks a lot.

Best regards,

Miao

Coordinator
Apr 5, 2010 at 7:24 PM

You can’t do it directly.  Check the code for the VB version of the WiimoteTest app:

Private Delegate Sub UpdateWiimoteStateDelegate(ByVal args As WiimoteChangedEventArgs)

BeginInvoke(New UpdateWiimoteStateDelegate(AddressOf UpdateWiimoteChanged), args)

Private Sub UpdateWiimoteChanged(ByVal args As WiimoteChangedEventArgs)

End Sub

Create your own delegate and call it.

From: miaoichi1 [mailto:notifications@codeplex.com]
Sent: Monday, April 05, 2010 6:17 AM
To: Brian Peek
Subject: How to change c# to vb codes?? [WiimoteLib:208331]

From: miaoichi1

Dear Brian Peek :

Could you tell me how to do this as titled?

BeginInvoke((MethodInvoker)delegate() { lblTrackingUtil.Text = util.ToString("f0"); });

Thanks a lot.

Best regards,

Miao

Read the full discussion online.

To add a post to this discussion, reply to this email (WiimoteLib@discussions.codeplex.com)

To start a new discussion for this project, email WiimoteLib@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com