To manage the buttons in MouseDown???

L

LE TROLL

To manage the buttons in MouseDown???

Hello,

I am in Vista32 vbNet2008 on PC

I made what follows to recover the value of the button (1, 4, 2), because I
perceived that " e.Button " of the event sent back a number whose first
number was the one of the button, here it is:

----------------
Dim bouton As Long

bouton = Mid(e.Button, 1, 1)

----------------

Is that this code is ok and go function everywhere?

What are the other possibilities (simplest)?

Thank you, cordially.
 
F

Family Tree Mike

LE said:
To manage the buttons in MouseDown???

Hello,

I am in Vista32 vbNet2008 on PC

I made what follows to recover the value of the button (1, 4, 2),
because I perceived that " e.Button " of the event sent back a number
whose first number was the one of the button, here it is:

----------------
Dim bouton As Long

bouton = Mid(e.Button, 1, 1)

----------------

Is that this code is ok and go function everywhere?

What are the other possibilities (simplest)?

Thank you, cordially.

How are you getting the values of 1, 4, 2? These values are not
consistent with the MouseButtons enum. Presumably you would get these
values by ((int) e.Button).ToString().
 

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

Top