Click here to Skip to main content
16,007,111 members
Home / Discussions / C#
   

C#

 
AnswerRe: Thread Pin
#realJSOP12-May-08 6:54
professional#realJSOP12-May-08 6:54 
QuestionMDI child can't maximize Pin
Yosh_12-May-08 5:23
professionalYosh_12-May-08 5:23 
AnswerRe: MDI child can't maximize Pin
Ennis Ray Lynch, Jr.12-May-08 5:29
Ennis Ray Lynch, Jr.12-May-08 5:29 
QuestionPassing Parameters to button click events Pin
Cozmo2312-May-08 4:41
Cozmo2312-May-08 4:41 
AnswerRe: Passing Parameters to button click events Pin
Giorgi Dalakishvili12-May-08 4:48
mentorGiorgi Dalakishvili12-May-08 4:48 
GeneralRe: Passing Parameters to button click events Pin
Cozmo2312-May-08 5:25
Cozmo2312-May-08 5:25 
GeneralRe: Passing Parameters to button click events Pin
Giorgi Dalakishvili12-May-08 5:30
mentorGiorgi Dalakishvili12-May-08 5:30 
AnswerRe: Passing Parameters to button click events Pin
Luis Alonso Ramos12-May-08 8:19
Luis Alonso Ramos12-May-08 8:19 
As Giorgi said, you cannot change the parameters of the event handlers. For the Click event, you get the first object sender parameter, which is always a reference to the Button sending the event (you can cast it), and EventArgs e which is useless. Other events pass arguments (eg. location where mouse was clicked) in an EventArgs-derived second parameter.

If you create your own event, you should derive from EventArgs to create your own class for passing parameters to the event handler. But you can only do this for events you define, not for system-defined events.

Luis Alonso Ramos
Intelectix
Chihuahua, Mexico

My Blog!

GeneralRe: Passing Parameters to button click events Pin
Cozmo2313-May-08 3:09
Cozmo2313-May-08 3:09 
QuestionPeer-to-peer Application Pin
pdoy070812-May-08 4:20
pdoy070812-May-08 4:20 
AnswerRe: Peer-to-peer Application Pin
led mike12-May-08 4:32
led mike12-May-08 4:32 
GeneralRe: Peer-to-peer Application Pin
pdoy070812-May-08 5:26
pdoy070812-May-08 5:26 
AnswerRe: Peer-to-peer Application Pin
Ennis Ray Lynch, Jr.12-May-08 5:31
Ennis Ray Lynch, Jr.12-May-08 5:31 
QuestionLoading an arrayList into a datagrid Pin
Twyce12-May-08 4:18
Twyce12-May-08 4:18 
QuestionHow can I create a ImageList property,that I can set at design-time? PLEASE HELP! Pin
ctoma200512-May-08 4:15
ctoma200512-May-08 4:15 
AnswerRe: How can I create a ImageList property,that I can set at design-time? PLEASE HELP! Pin
led mike12-May-08 4:20
led mike12-May-08 4:20 
GeneralRe: How can I create a ImageList property,that I can set at design-time? PLEASE HELP! Pin
ctoma200512-May-08 4:32
ctoma200512-May-08 4:32 
GeneralRe: How can I create a ImageList property,that I can set at design-time? PLEASE HELP! Pin
ctoma200512-May-08 4:33
ctoma200512-May-08 4:33 
AnswerRe: How can I create a ImageList property,that I can set at design-time? PLEASE HELP! Pin
tgrt12-May-08 4:44
tgrt12-May-08 4:44 
GeneralRe: How can I create a ImageList property,that I can set at design-time? PLEASE HELP! Pin
ctoma200512-May-08 4:57
ctoma200512-May-08 4:57 
GeneralRe: How can I create a ImageList property,that I can set at design-time? PLEASE HELP! Pin
ctoma200512-May-08 5:09
ctoma200512-May-08 5:09 
QuestionEmpty Textbox ?? Pin
LeSquale12-May-08 3:42
LeSquale12-May-08 3:42 
QuestionNeed PrictureBox with panning & zooming large images. Pin
hdv21212-May-08 3:24
hdv21212-May-08 3:24 
AnswerRe: Need PrictureBox with panning & zooming large images. Pin
Giorgi Dalakishvili12-May-08 3:53
mentorGiorgi Dalakishvili12-May-08 3:53 
QuestionProblem in accessing Shared Folder rights Pin
Deepali Dhingra12-May-08 2:41
professionalDeepali Dhingra12-May-08 2:41 

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.