Click here to Skip to main content
15,889,462 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: FxCop Pin
Luc Pattyn27-Jul-07 4:28
sitebuilderLuc Pattyn27-Jul-07 4:28 
GeneralRe: FxCop Pin
Scott Dorman27-Jul-07 12:37
professionalScott Dorman27-Jul-07 12:37 
AnswerRe: FxCop Pin
Scott Dorman27-Jul-07 12:34
professionalScott Dorman27-Jul-07 12:34 
QuestionRead/Write to Excel Pin
Elizma26-Jul-07 23:50
Elizma26-Jul-07 23:50 
AnswerRe: Read/Write to Excel Pin
ellllllllie27-Jul-07 3:57
ellllllllie27-Jul-07 3:57 
AnswerRe: Read/Write to Excel Pin
Paul Conrad27-Jul-07 9:47
professionalPaul Conrad27-Jul-07 9:47 
Questionhow to call the click event or cellclick even of datagrid from a button Pin
indian14326-Jul-07 5:19
indian14326-Jul-07 5:19 
AnswerRe: how to call the click event or cellclick even of datagrid from a button Pin
Kschuler26-Jul-07 9:25
Kschuler26-Jul-07 9:25 
If you look at the event handler...let say the CellMouseClick event of a DataGridView object, it looks like any other method, but with a Handles keyword....like this:

Private Sub dgvMyGrid_CellMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles dgvMyGrid.CellMouseClick

So if you want to call the CellMouseClick event in your code anywhere else, you can call it just like you would any other method. You just need to send the proper parameters. In this case you have to pass an object and a System.Windows.Forms.DataGridViewCellMouseEventArgs object. If you don't reference either of these inside the CellMouseClick event, you could just pass nothing, like this:

dgvMyGrid_CellMouseClick(Nothing, Nothing)

This applies to all event handlers, not just Click events.

Hope this helps.
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14326-Jul-07 20:24
indian14326-Jul-07 20:24 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14326-Jul-07 21:43
indian14326-Jul-07 21:43 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
Christian Graus26-Jul-07 23:18
protectorChristian Graus26-Jul-07 23:18 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14327-Jul-07 0:16
indian14327-Jul-07 0:16 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
Christian Graus27-Jul-07 0:48
protectorChristian Graus27-Jul-07 0:48 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14327-Jul-07 1:00
indian14327-Jul-07 1:00 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
Christian Graus27-Jul-07 12:36
protectorChristian Graus27-Jul-07 12:36 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14328-Jul-07 4:34
indian14328-Jul-07 4:34 
QuestionRe: how to call the click event or cellclick even of datagrid from a button Pin
Christian Graus30-Jul-07 11:05
protectorChristian Graus30-Jul-07 11:05 
QuestionMy clients requirement is Pin
indian14326-Jul-07 2:34
indian14326-Jul-07 2:34 
AnswerRe: My clients requirement is Pin
Pete O'Hanlon26-Jul-07 4:31
mvePete O'Hanlon26-Jul-07 4:31 
GeneralRe: My clients requirement is Pin
indian14326-Jul-07 5:15
indian14326-Jul-07 5:15 
GeneralRe: My clients requirement is Pin
originSH26-Jul-07 5:51
originSH26-Jul-07 5:51 
GeneralRe: My clients requirement is Pin
Dave Kreskowiak26-Jul-07 11:07
mveDave Kreskowiak26-Jul-07 11:07 
GeneralRe: My clients requirement is Pin
Leslie Sanford27-Jul-07 6:46
Leslie Sanford27-Jul-07 6:46 
GeneralRe: My clients requirement is Pin
Paul Conrad23-Dec-07 15:06
professionalPaul Conrad23-Dec-07 15:06 
GeneralRe: My clients requirement is Pin
Vasudevan Deepak Kumar26-Jul-07 23:05
Vasudevan Deepak Kumar26-Jul-07 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.