Click here to Skip to main content
15,915,734 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionTextbox, words in different colors Pin
phimix30-Jul-07 16:09
phimix30-Jul-07 16:09 
AnswerRe: Textbox, words in different colors Pin
Dave Kreskowiak31-Jul-07 3:58
mveDave Kreskowiak31-Jul-07 3:58 
QuestionProxying Forms Pin
amartch28-Jul-07 10:34
amartch28-Jul-07 10:34 
AnswerRe: Proxying Forms Pin
originSH30-Jul-07 3:50
originSH30-Jul-07 3:50 
QuestionDetecting a messagebox displayed Pin
Kashif Iqbal Khan27-Jul-07 5:18
Kashif Iqbal Khan27-Jul-07 5:18 
AnswerRe: Detecting a messagebox displayed Pin
SomeGuyThatIsMe27-Jul-07 8:41
SomeGuyThatIsMe27-Jul-07 8:41 
GeneralRe: Detecting a messagebox displayed Pin
Kashif Iqbal Khan29-Jul-07 22:20
Kashif Iqbal Khan29-Jul-07 22:20 
AnswerRe: Detecting a messagebox displayed [modified] Pin
Luc Pattyn30-Jul-07 0:06
sitebuilderLuc Pattyn30-Jul-07 0:06 
QuestionFxCop Pin
ellllllllie27-Jul-07 3:53
ellllllllie27-Jul-07 3:53 
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 

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.