Click here to Skip to main content
15,912,756 members
Home / Discussions / C#
   

C#

 
GeneralRe: Send Objects between Pages Pin
Vikram A Punathambekar11-Mar-08 1:05
Vikram A Punathambekar11-Mar-08 1:05 
QuestionHow to bind the XML file into DataGribView from window form in C# Pin
thanhtikezaw10-Mar-08 22:43
thanhtikezaw10-Mar-08 22:43 
GeneralRe: How to bind the XML file into DataGribView from window form in C# Pin
Chetan Patel10-Mar-08 22:56
Chetan Patel10-Mar-08 22:56 
QuestionHow to call a web user control in html page Pin
Exelioindia10-Mar-08 22:25
Exelioindia10-Mar-08 22:25 
AnswerRe: How to call a web user control in html page Pin
Christian Graus10-Mar-08 22:36
protectorChristian Graus10-Mar-08 22:36 
AnswerRe: How to call a web user control in html page Pin
Chetan Patel10-Mar-08 23:31
Chetan Patel10-Mar-08 23:31 
Generalgeneric collection copy Pin
arkiboys10-Mar-08 22:04
arkiboys10-Mar-08 22:04 
GeneralRe: generic collection copy Pin
Christian Graus10-Mar-08 22:13
protectorChristian Graus10-Mar-08 22:13 
GeneralRe: generic collection copy Pin
Pete O'Hanlon10-Mar-08 23:45
mvePete O'Hanlon10-Mar-08 23:45 
GeneralCalling Button_Click event from another form Pin
M Riaz Bashir10-Mar-08 21:34
M Riaz Bashir10-Mar-08 21:34 
GeneralRe: Calling Button_Click event from another form Pin
N a v a n e e t h10-Mar-08 22:05
N a v a n e e t h10-Mar-08 22:05 
GeneralRe: Calling Button_Click event from another form Pin
Christian Graus10-Mar-08 22:14
protectorChristian Graus10-Mar-08 22:14 
GeneralRe: Calling Button_Click event from another form Pin
DaveyM6911-Mar-08 4:52
professionalDaveyM6911-Mar-08 4:52 
The answers above are the correct way of doing it. A different 'quick' way is pass either the class containing the button_click method or the button istelf to the other form (in the constructor).

If using the first, make sure the button_click method is public and you'll be able to call it from your second form (you can use this, EventArgs.Empty for the parameters).

If using the second, simply call the button's PerformClick method.

If possible, use the other suggestions above though as they are a better way.

Dave

GeneralPrint Pin
kiran@p2softech10-Mar-08 21:09
kiran@p2softech10-Mar-08 21:09 
GeneralRe: Print Pin
Christian Graus10-Mar-08 22:13
protectorChristian Graus10-Mar-08 22:13 
GeneralRe: Print Pin
kiran@p2softech10-Mar-08 23:39
kiran@p2softech10-Mar-08 23:39 
GeneralRe: Print Pin
Pete O'Hanlon11-Mar-08 0:22
mvePete O'Hanlon11-Mar-08 0:22 
GeneralRe: Print Pin
kiran@p2softech11-Mar-08 0:30
kiran@p2softech11-Mar-08 0:30 
Questionhow to get only the image files ??? Pin
md_azy10-Mar-08 20:05
md_azy10-Mar-08 20:05 
GeneralRe: how to get only the image files ??? Pin
Christian Graus10-Mar-08 20:32
protectorChristian Graus10-Mar-08 20:32 
GeneralRe: how to get only the image files ??? Pin
Vikram A Punathambekar10-Mar-08 23:15
Vikram A Punathambekar10-Mar-08 23:15 
QuestionNT Authentication Pin
Programm3r10-Mar-08 19:57
Programm3r10-Mar-08 19:57 
GeneralRe: NT Authentication Pin
stancrm10-Mar-08 21:35
stancrm10-Mar-08 21:35 
GeneralRe: NT Authentication Pin
Programm3r10-Mar-08 21:49
Programm3r10-Mar-08 21:49 
Generalmdi form datagridview problem Pin
Miss Maheshwari10-Mar-08 19:57
Miss Maheshwari10-Mar-08 19:57 

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.