Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: mdi form datagridview problem Pin
Chetan Patel10-Mar-08 23:00
Chetan Patel10-Mar-08 23:00 
GeneralRe: mdi form datagridview problem Pin
Miss Maheshwari11-Mar-08 18:37
Miss Maheshwari11-Mar-08 18:37 
QuestionInclude another EXE(having UI) in my C# Desktop Application Pin
Amjath Rahman10-Mar-08 15:58
Amjath Rahman10-Mar-08 15:58 
GeneralRe: Include another EXE(having UI) in my C# Desktop Application Pin
Paul Conrad10-Mar-08 16:56
professionalPaul Conrad10-Mar-08 16:56 
GeneralRe: Include another EXE(having UI) in my C# Desktop Application Pin
Christian Graus10-Mar-08 17:35
protectorChristian Graus10-Mar-08 17:35 

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.