Converting some code to vb.net from c#

piorceBooli

New Member
I am converting some classes from \[code\]C#\[/code\] to \[code\]VB.NET\[/code\] and this line can't be converted properly. I tried few online converters but they don't seem to work.\[code\]this.mGrid.RowDataBound += new GridViewRowEventHandler(RowDataBoundHandler);\[/code\]Converted \[code\]VB.NET\[/code\] that does not work.\[code\]Me.mGrid.RowDataBound += New GridViewRowEventHandler(RowDataBoundHandler)\[/code\]The following are the two errors I am getting from that. Can anyone help me out coz my brain is dead now.Thanks,\[code\]Error 4 Delegate 'System.Web.UI.WebControls.GridViewRowEventHandler' requires an 'AddressOf' expression or lambda expression as the only argument to its constructor. C:\My Projects\PMS\App_Code\GridViewHelper.vb 110 62 C:\My Projects\PMS\\[/code\]\[code\]Error 3 'Public Event RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. C:\My Projects\PMS\App_Code\GridViewHelper.vb 110 9 C:\My Projects\PMS\\[/code\]
 
Back
Top