Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
3704 Points
638 Posts
Sep 28, 2011 03:31 PM|LINK
Unfortunately, even in VS 2010 VB does not allow you to initialize events in their declaration, using lambdas or not.
Here's a work-around for you:
Class test Public Event BeforeRender As RenderEvent Sub New() AddHandler BeforeRender, Sub(writer, document) End Sub End Sub End Class
David Anton
Contributor
3704 Points
638 Posts
Re: C# to VB.Net
Sep 28, 2011 03:31 PM|LINK
Unfortunately, even in VS 2010 VB does not allow you to initialize events in their declaration, using lambdas or not.
Here's a work-around for you:
http://www.tangiblesoftwaresolutions.com
Instant C# - VB to C# Converter
Instant VB - C# to VB Converter