C# to VB conversion question

  • Thread starter Thread starter Al
  • Start date Start date
A

Al

Hi,
Can anayone tell me what would be equvalante of these
statements in VB.net would be?

Thanks in Advance
Al
myInkCollector.NewPackets += New
InkCollectorNewPacketsEventHandler
(myInkCollector_NewPackets);

myInkCollector.Stroke += new
InkCollectorStrokeEventHandler(myInkCollector_Stroke);
 
* "Al said:
Can anayone tell me what would be equvalante of these
statements in VB.net would be?

Thanks in Advance
Al
myInkCollector.NewPackets += New
InkCollectorNewPacketsEventHandler
(myInkCollector_NewPackets);

myInkCollector.Stroke += new
InkCollectorStrokeEventHandler(myInkCollector_Stroke);

Have a look at the 'AddHandler' keyword.
 
I think this would be a right answer:

myInkCollector.NewPackets += New
InkCollectorNewPacketsEventHandler
(myInkCollector_NewPackets)

myInkCollector.Stroke += New
InkCollectorStrokeEventHandler(myInkCollector_Stroke)


also check KamalPatel.Net - Convertor from C# to VB .NET:

http://www.kamalpatel.net/ConvertCSharp2VB.aspx
 
Back
Top