C# to VB conversion question

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);
 
H

Herfried K. Wagner [MVP]

* "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.
 
M

Martin Ho

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top