To manage the buttons in MouseDown???

  • Thread starter Thread starter LE TROLL
  • Start date Start date
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.
 
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().
 
Back
Top