I need tocapturethe mousebuttonin a ListBox, done that
method-idlistBox2_MouseClickfinalprivate.
proceduredivisionusingbyvaluesenderasobjecteastypeSystem.Windows.Forms.MouseEventArgs.
if (e::Button = typeMouseButtons::Right)
invoketypeMessageBox::Show("Direito""MMSIS")
end-if
if (e::Button = typeMouseButtons::Left)
invoketypeMessageBox::Show("Esquerda""MMSIS")
end-if
if (e::Button = typeMouseButtons::Middle)
invoketypeMessageBox::Show("Centro""MMSIS")
end-if
endmethod.
Butjust takethe left button