Hello everyone,
Can someone help me to convert this line of vb.net code to c#? [:)]
ThanksVB Code:
Private callme As New callfunc(AddressOf sendsms)
Printable View
Hello everyone,
Can someone help me to convert this line of vb.net code to c#? [:)]
ThanksVB Code:
Private callme As New callfunc(AddressOf sendsms)
Hi Godwin,Quote:
Originally Posted by uniquegodwin
You can try this code;
VB Code:
private callfunc callme = new callfunc(/* might be wrong, please check */ new EventHandler(sendsms));
Wkr,
sparrow1
I already saw that sparrow buddy,but it doesn't work :)
In this case you can simply use (from Instant C#):
private callfunc callme = new callfunc(sendsms);
Well,c# 2.0 doesnt allow that :(
Nevermind,I solved the problem using background worker...instead of using threading with delegates :D But,now i got a diff problem related to speed.
Right - I think sparrow1 was on the right track, except that you need to know the exact event handler delegate type. Since this is not defined anywhere for your sample, Instant C# couldn't use that. (I should have noticed it before posting).Quote:
Originally Posted by uniquegodwin
Nevermind,Yet,Thanks for trying to help guys...I really appreciate :)