breakpoint
Newcomer
- Joined
- May 1, 2010
- Messages
- 11
I posted this over at the Syntax Forum, but after reading the main thread I believe I should have posted it here. It would be great if someone could help me delete the previous thread. ( http://www.xtremedotnettalk.com/showthread.php?t=103414 )
This is what I wrote over there:
Hi! I used to be an active member on this forum under a different username, but I have forgotten the login details.. Glad to be back!!
Anyway, I have been trying to "decipher" what this piece of C# code means in Vb.Net:
Now I have tried many things.
This is what a converter provides me with:
Which is completely wrong. Converting back gives me System.EventHandler in C#
I have also tried this format:
It would be great if someone could enlighten me on how to work this problem out. It has been delaying my work for about 2 days now..
Thank you!!
----
I know this is not good forum practise, but this problem has been puzzling me for a very long time. I have been looking all over the internet without any luck.
I have asked fellow programmers, and all of them have no idea (perhaps because they work only with C#).
If someone has any idea or opinion, please do not hesitate to help out. Thanks.
-----
Actually,
does not give a syntax error, but it still gives an error from the DLL (which is a compiled C# project) at this line:
saying: Object reference not set to an instance of an object.
Basically the C# code in the first post does not cause this errror to occur. The problem i'm facing now is how to fix this in Vb.Net..
------
I apologise for the confusion. Hopefully here I will be able to obtain more help!
Thanks!
This is what I wrote over there:
Hi! I used to be an active member on this forum under a different username, but I have forgotten the login details.. Glad to be back!!
Anyway, I have been trying to "decipher" what this piece of C# code means in Vb.Net:
Code:
className.OnProcessUpdates += new ClassNameControl.ProcessUpdatesDelegate(this.DoSomething);
Now I have tried many things.
This is what a converter provides me with:
Code:
AddHandler className.OnProcessUpdates, AddressOf Me.DoSomething
Which is completely wrong. Converting back gives me System.EventHandler in C#
I have also tried this format:
Code:
className.OnProcessUpdates = New ClassNameControl.ProcessUpdatesDelegate(AddressOf Me.DoSomething)
It would be great if someone could enlighten me on how to work this problem out. It has been delaying my work for about 2 days now..
Thank you!!
----
I know this is not good forum practise, but this problem has been puzzling me for a very long time. I have been looking all over the internet without any luck.
I have asked fellow programmers, and all of them have no idea (perhaps because they work only with C#).
If someone has any idea or opinion, please do not hesitate to help out. Thanks.
-----
Actually,
Code:
className.OnProcessUpdates = New ClassNameControl.ProcessUpdatesDelegate(AddressOf Me.DoSomething)
does not give a syntax error, but it still gives an error from the DLL (which is a compiled C# project) at this line:
Code:
this.Owner.Dispatcher.Invoke((InvokeDelegate)delegate() { this.ProcessUpdates(); });
saying: Object reference not set to an instance of an object.
Basically the C# code in the first post does not cause this errror to occur. The problem i'm facing now is how to fix this in Vb.Net..
------
I apologise for the confusion. Hopefully here I will be able to obtain more help!
Thanks!