|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Converting c# to vb.netCan any one of you help to convert this code in vb.net. I dont know vb.net... Thanks in advance With regards venkat public event ReceiveDataDelegate ReceiveData; public delegate void ReceiveDataDelegate(object sender, ReceiveDataEventArgs e); private void somemethod() { if (this.ReceiveData != null ) { //do something } } "Venkatachalam" <Venkatacha***@discussions.microsoft.com> schrieb: This article contains a list of available C# to VB.NET translators:> Can any one of you help to convert this code in vb.net. I dont know > vb.net... Converting code between .NET programming languages <URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en> The converter of Tangible Software Solutions Inc. produces very accurate results. You may want to order a demo version: <URL:http://www.tangiblesoftwaresolutions.com/Demo_Download/Instant_VB/Request_Demo_Instant_VB.htm> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Private sub SomeMethod()
if not me.ReceiveData is Nothing then ' do something end if end sub Mike. Show quoteHide quote "Venkatachalam" <Venkatacha***@discussions.microsoft.com> wrote in message news:9EF05A6A-FB7E-41C4-B6EE-CCAB443C272E@microsoft.com... > Hello, > > Can any one of you help to convert this code in vb.net. I dont know vb.net... > > Thanks in advance > > With regards > venkat > > public event ReceiveDataDelegate ReceiveData; > public delegate void ReceiveDataDelegate(object sender, ReceiveDataEventArgs > e); > > private void somemethod() > { > if (this.ReceiveData != null ) > { > //do something > } > } > equivalent error for that syntax...
c:\inetpub\wwwroot\PaypalSample\PayPalUtils\wwHTTP.vb(604): 'Public Event ReceiveData(sender As Object, e As ReceiveDataEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. Show quoteHide quote "Michael D. Ober" wrote: > Private sub SomeMethod() > if not me.ReceiveData is Nothing then > > ' do something > end if > end sub > > Mike. > > "Venkatachalam" <Venkatacha***@discussions.microsoft.com> wrote in message > news:9EF05A6A-FB7E-41C4-B6EE-CCAB443C272E@microsoft.com... > > Hello, > > > > Can any one of you help to convert this code in vb.net. I dont know > vb.net... > > > > Thanks in advance > > > > With regards > > venkat > > > > public event ReceiveDataDelegate ReceiveData; > > public delegate void ReceiveDataDelegate(object sender, > ReceiveDataEventArgs > > e); > > > > private void somemethod() > > { > > if (this.ReceiveData != null ) > > { > > //do something > > } > > } > > > > > > "Venkatachalam" <Venkatacha***@discussions.microsoft.com> schrieb: What exactly do you want to archieve? You could use 'RaiseEvent' if you > equivalent error for that syntax... > > c:\inetpub\wwwroot\PaypalSample\PayPalUtils\wwHTTP.vb(604): 'Public Event > ReceiveData(sender As Object, e As ReceiveDataEventArgs)' is an event, and > cannot be called directly. Use a 'RaiseEvent' statement to raise an event. want to raise the event. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Programming for USB Modem
Check if an object is a type object SOAP Client navigation? datagrid and vertical gridline color Frameworks and Check/Install select query changing bound controls data Threading - Object reference not set to an instance of an object VB.Net and SQL Server Developer OnRenderMenuItemBackground question |
|||||||||||||||||||||||