Case select for multiple tollbar buttons

  • Thread starter Thread starter Mac via DotNetMonster.com
  • Start date Start date
M

Mac via DotNetMonster.com

Hi all,

I have searched some old posts and it appears that to run some code for a
particular button that has been clicked on a toolbar, I need to have a case
statement in the toolbar click event function.

Can anyone supply me with the specific case statement code to determine which
button has been clicked? The posts that I found only have code samples in C#

tia,

mac
 
Mac,

In my opinion is the most simple way to use the tag property for that (to
become language independent).

And than just in the click event from the toolbar
\\\
Select Case e.Button.Tag
Case "First"
MessageBox.Show(e.Button.Text)
End Select
///
I hope this helps,

Cor
 

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

Back
Top