By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

Event Hanlding help required

P: n/a
I have some code that I need to implement an event handler in VB. Here is
the C# code

this.listBar1.ItemClicked += new
ItemClickedEventHandler(listBar1_ItemClicked);

Can anyone help me change this over to VB? Everything I have tried comes up
with errors. It is a listbar from vbAccelerator site.

Cheers
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi John,

I first thought you where Dutch, probably you know that your name
translated is "field at home". What could be a nickname for the sunday.

this.listBar1.ItemClicked += new
ItemClickedEventHandler(listBar1_ItemClicked);

Translating this, is one of the easiest by the way.

Addhandler me.listbar1.ItemClicked, addressof listbar_ItemClicked

You can as well set where probably is something as "private listBar1 as
listbar" this "private withevents listBar1 as listbar" and than use the
standard VBNet way. They both work and it depends where I use them.

I hope this helps,

Cor
Nov 21 '05 #2

P: n/a
"John Veldthuis" <jo***@paradise.net.nz> schrieb:
I have some code that I need to implement an event handler in VB. Here is
the C# code

this.listBar1.ItemClicked += new
ItemClickedEventHandler(listBar1_ItemClicked);

Can anyone help me change this over to VB?


In addition to the other replies: I suggest you to take a look at the
according chapter in the documentation:

Visual Basic Language Concepts -- Events and Delegates
<URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconEventsDelegatesInheritance.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.