Hello,
I am a C# developer and am now starting to do some work in VB.NET and for
the life of me cant get something working the way I cant.
If anyone can offer any suggestions on how to convert this c# into Working
VB.Net code that would be great.
C# Class to be converted to VB.Net
I cant seem to get this line to work FireAsync(Compl eted, this,
EventArgs.Empty );
Class........
public event EventHandler Completed;
...
...
...
private void someMethod()
{
FireAsync(Compl eted, this, EventArgs.Empty );
}
protected void FireAsync(Deleg ate dlg, params object[] pList)
{
if (dlg != null)
{
Target.BeginInv oke(dlg, pList);
}
}
end class
VB.Net calling Code
Public MustInherit Class GridData
Inherits AsyncUtilities. AsyncOperation
AddHandler mobjData.Comple ted, AddressOf DataLoad_Finish ed
AddHandler mobjData.Cancel led, AddressOf DataLoad_Cancel led
AddHandler mobjData.Failed , New
System.Threadin g.ThreadExcepti onEventHandler( AddressOf DataLoad_Failed )
I am a C# developer and am now starting to do some work in VB.NET and for
the life of me cant get something working the way I cant.
If anyone can offer any suggestions on how to convert this c# into Working
VB.Net code that would be great.
C# Class to be converted to VB.Net
I cant seem to get this line to work FireAsync(Compl eted, this,
EventArgs.Empty );
Class........
public event EventHandler Completed;
...
...
...
private void someMethod()
{
FireAsync(Compl eted, this, EventArgs.Empty );
}
protected void FireAsync(Deleg ate dlg, params object[] pList)
{
if (dlg != null)
{
Target.BeginInv oke(dlg, pList);
}
}
end class
VB.Net calling Code
Public MustInherit Class GridData
Inherits AsyncUtilities. AsyncOperation
AddHandler mobjData.Comple ted, AddressOf DataLoad_Finish ed
AddHandler mobjData.Cancel led, AddressOf DataLoad_Cancel led
AddHandler mobjData.Failed , New
System.Threadin g.ThreadExcepti onEventHandler( AddressOf DataLoad_Failed )
Comment