Spent 3 days on and off with this one so I figure it's time to ask for assistance ![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Converting some code from C# to vb (wpf), and now getting a message that I cannot call an event directly and must use "RaiseEvent". I've tried various permutations using addhandler, yet having no luck. Any help would be greatly appreciated.
This is the code as the converter presented it to me, minus irrelevant lines.
This is the original C# below, minus irrelevant lines.
Converting some code from C# to vb (wpf), and now getting a message that I cannot call an event directly and must use "RaiseEvent". I've tried various permutations using addhandler, yet having no luck. Any help would be greatly appreciated.
This is the code as the converter presented it to me, minus irrelevant lines.
VB.NET:
[FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]Private[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2] wrapper [/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff][FONT=Consolas][SIZE=2][COLOR=#0000ff]As [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af]SdkWrapper
wrapper = New SdkWrapper()
wrapper.SessionInfoUpdated += New EventHandler(Of SdkWrapper.SessionInfoUpdatedEventArgs)(wrapper_SessionInfoUpdated)
Private Sub wrapper_SessionInfoUpdated(sender As Object, e As SdkWrapper.SessionInfoUpdatedEventArgs)
end sub
[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]
This is the original C# below, minus irrelevant lines.
VB.NET:
private SdkWrapper wrapper;
wrapper = new SdkWrapper();
wrapper.SessionInfoUpdated += new EventHandler<SdkWrapper.SessionInfoUpdatedEventArgs>(wrapper_SessionInfoUpdated);
private void wrapper_SessionInfoUpdated(object sender, SdkWrapper.SessionInfoUpdatedEventArgs e)
{
}