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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -