Hello alivemedia!
You're right the lack of lambda-support in VB.NET is really ackward. I use a syntax that works, but is far to long to be nicely readable, but it gives you the benefit of refactoring-support:
<%Using Html.Form(Of CustomerController)(New System.Action(Of CustomerController) _
(Function(c As CustomerController) c.Login()), FormMethod.Post)%>
<%-- FORM CONTENT --%>
<%End Using %>
As a workaround you need to declare the methods, which you want to use in your Html.Form() call (here it is Login() in my CustomerController class), as functions of type object (or something) else and just return Nothing in the respective Method. This worked for me. A sample Login() method would look as follows:
1 Public Class CustomerController
2 Inherits System.Web.Mvc.Controller
3
4 Public Function Login() As Object
5
6 RenderView("Login")
7 Return Nothing
8
9 End Function
10
11 End Class
Hope I could help!
Greetings,
Jimmy