vb.net - How can I make a variable to accumulate clicks made over a datagridview? -
i want acumulate number of clicks made of clicks made on datagridview obtain 1 click
private sub clickmouse(sender object, e datagridviewcellmouseeventargs) handles lrinc.cellmouseclick msgbox(e.clicks & e.columnindex & e.rowindex) end sub
messagebox
displayed when first click occurs , other clicks ignored. need implement method show result.
private sub clickmouse(sender object, e datagridviewcellmouseeventargs) handles datagridview.cellmouseclick system.diagnostics.debug.print(e.clicks & e.columnindex & e.rowindex) end sub
result should in output window.
alternatively can create textbox (text1
) hold result
private sub clickmouse(sender object, e datagridviewcellmouseeventargs) handles datagridview.cellmouseclick text1.text = e.clicks & e.columnindex & e.rowindex end sub
edit - accumulation
declaration , initialization:
private accums new arraylist
event:
private sub clickmouse(sender object, e datagridviewcellmouseeventargs) handles datagridview.cellmouseclick accums.add(new integer() {e.clicks, e.columnindex, e.rowindex}) end sub
Comments
Post a Comment