D
Daniel Jeffrey
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(Completed, this,
EventArgs.Empty);
Class........
public event EventHandler Completed;
...
...
...
private void someMethod()
{
FireAsync(Completed, this, EventArgs.Empty);
}
protected void FireAsync(Delegate dlg, params object[] pList)
{
if (dlg != null)
{
Target.BeginInvoke(dlg, pList);
}
}
end class
VB.Net calling Code
Public MustInherit Class GridData
Inherits AsyncUtilities.AsyncOperation
AddHandler mobjData.Completed, AddressOf DataLoad_Finished
AddHandler mobjData.Cancelled, AddressOf DataLoad_Cancelled
AddHandler mobjData.Failed, New
System.Threading.ThreadExceptionEventHandler(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(Completed, this,
EventArgs.Empty);
Class........
public event EventHandler Completed;
...
...
...
private void someMethod()
{
FireAsync(Completed, this, EventArgs.Empty);
}
protected void FireAsync(Delegate dlg, params object[] pList)
{
if (dlg != null)
{
Target.BeginInvoke(dlg, pList);
}
}
end class
VB.Net calling Code
Public MustInherit Class GridData
Inherits AsyncUtilities.AsyncOperation
AddHandler mobjData.Completed, AddressOf DataLoad_Finished
AddHandler mobjData.Cancelled, AddressOf DataLoad_Cancelled
AddHandler mobjData.Failed, New
System.Threading.ThreadExceptionEventHandler(AddressOf DataLoad_Failed)