|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Convert Event from C# to VB.NetI have the following event written by C# And I want some body help me or advise me in how can I write it in Vb.Net, also if there is any refreance that I have to add please tell me : public event EventHandler ReadyStateComplete { add { Events.AddHandler(_readyStateCompleteEvent, value); } remove { Events.RemoveHandler(_readyStateCompleteEvent, value); } } any help will be completlly appreciated regard's Husam Hi Husam,
VB.NET 2002/2003 does not support custom events but VB.NET 2005 does, so check the help docs about "Custom Event": Public Custom Event ReadyStateComplete As EventHandler AddHandler(ByVal value As EventHandler) ... End AddHandler RemoveHandler(ByVal value As EventHandler) ... End RemoveHandler RaiseEvent(ByVal sender As Object, ByVal e As System.EventArgs) ... End RaiseEvent End Event -- Show quoteHide quoteBest regards, Carlos J. Quintero MZ-Tools: Productivity add-ins for Visual Studio You can code, design and document much faster: http://www.mztools.com "Husam" <Hu***@discussions.microsoft.com> escribió en el mensaje news:6429B9E2-2705-4A36-8080-5A1254567600@microsoft.com... > Hi EveryBody: > > I have the following event written by C# And I want some body help me or > advise me in how can I write it in Vb.Net, also if there is any refreance > that I have to add please tell me : > > public event EventHandler ReadyStateComplete { > add { > Events.AddHandler(_readyStateCompleteEvent, value); > } > remove { > Events.RemoveHandler(_readyStateCompleteEvent, value); > } > } > any help will be completlly appreciated > > regard's > > Husam
Local Machine policy exceptions
VB.NET or C#.NET ??? control disable byref and byvalue reading text files TCP/IP Socket communication from multiple clients Help to Italy Open a text file and into an array ?? Must I change the property in 26 projects or is there a soultion level way of doing it Usual Databinding Question - UNusual Requirements |
|||||||||||||||||||||||