Results 1 to 4 of 4

Thread: KeyDown & MouseDown events by same Subroutine with many Handles..?

Threaded View

  1. #1

    Thread Starter
    Lively Member nilesh16782's Avatar
    Join Date
    Feb 2007
    Location
    India
    Posts
    104

    Lightbulb KeyDown & MouseDown events by same Subroutine with many Handles..?

    hi all.
    i have a datagridview in which i want to know which row is selected by mousedown or keydown..
    so in both case i want to use only ONE subroutine which can give e.rowindex , e.colindex value of datagridview...

    Example..
    Code:
    Private Sub xyz (s as sender, e as keydownaurguments, m as mousedownaurguments) handles keydown, mousedown
                   '\\\\ code
    end sub
    Or if possible i want to execute both events in datagridview.cellenter events
    Code:
    Private Sub Datagridview_Cellenter(s as sender, e as ???) handles 1,2,3,.....
             msgbox e.rowindex
    end sub

    (Before post this thread i already fighted with error "because they do not have the same signature" )
    so plz tell me how make its possible...
    Last edited by nilesh16782; Apr 8th, 2009 at 06:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width