Click here to Skip to main content
15,917,328 members
Home / Discussions / C#
   

C#

 
Questionhow can i use wpf? Pin
Mir_As25-Mar-07 7:38
Mir_As25-Mar-07 7:38 
AnswerRe: how can i use wpf? Pin
Christian Graus25-Mar-07 9:23
protectorChristian Graus25-Mar-07 9:23 
GeneralRe: how can i use wpf? Pin
Mir_As26-Mar-07 5:12
Mir_As26-Mar-07 5:12 
QuestionEvent,Delegation Pin
abalfazl25-Mar-07 7:26
abalfazl25-Mar-07 7:26 
AnswerRe: Event,Delegation Pin
abalfazl25-Mar-07 7:27
abalfazl25-Mar-07 7:27 
GeneralRe: Event,Delegation Pin
abalfazl25-Mar-07 20:43
abalfazl25-Mar-07 20:43 
AnswerRe: Event,Delegation Pin
abalfazl25-Mar-07 7:28
abalfazl25-Mar-07 7:28 
AnswerRe: Event,Delegation Pin
Mike Hankey25-Mar-07 7:47
mveMike Hankey25-Mar-07 7:47 
Custom EventArgs are used when you need to pass additional information to the subscriber.

You don't use custom event args in cases where you just want to know something happened such as a button click. You know its a button and its been clicked.
You use custom event args if you want more info about the event say if you want to know the background color of the button.

public class MyEventArgs : EventArgs
{
public Color btnColor;

public MyEventArgs(Color color)
{
btnColor = color;
}
}

then when you create;
if (myHandler != null)
myHandler(this, new MyEventArgs(button1.BackColor);

Hope this helps
Mike

Everybody gotta be somebody

QuestionSelf Updating Application #$%@ Pin
Steve Messer25-Mar-07 7:11
Steve Messer25-Mar-07 7:11 
AnswerRe: Self Updating Application #$%@ Pin
Christian Graus25-Mar-07 9:21
protectorChristian Graus25-Mar-07 9:21 
GeneralRe: Self Updating Application #$%@ Pin
Steve Messer25-Mar-07 10:41
Steve Messer25-Mar-07 10:41 
GeneralRe: Self Updating Application #$%@ Pin
Christian Graus25-Mar-07 12:40
protectorChristian Graus25-Mar-07 12:40 
GeneralRe: Self Updating Application #$%@ Pin
Steve Messer25-Mar-07 13:00
Steve Messer25-Mar-07 13:00 
AnswerRe: Self Updating Application #$%@ Pin
Patrick Etc.25-Mar-07 12:52
Patrick Etc.25-Mar-07 12:52 
GeneralRe: Self Updating Application #$%@ Pin
Steve Messer25-Mar-07 13:01
Steve Messer25-Mar-07 13:01 
GeneralRe: Self Updating Application #$%@ Pin
Steve Messer29-Mar-07 5:00
Steve Messer29-Mar-07 5:00 
QuestionHow to use openFileDialog control Pin
mezo_2225-Mar-07 6:01
mezo_2225-Mar-07 6:01 
AnswerRe: How to use openFileDialog control Pin
Stefan Troschuetz25-Mar-07 7:09
Stefan Troschuetz25-Mar-07 7:09 
AnswerRe: How to use openFileDialog control Pin
Keshav V. Kamat25-Mar-07 17:08
Keshav V. Kamat25-Mar-07 17:08 
QuestionQuestion on Architecture of a Attribute Based CRUD operations Pin
jubilanttiger25-Mar-07 5:34
jubilanttiger25-Mar-07 5:34 
Questionplease! I need code upload video Pin
Member 209456125-Mar-07 4:55
Member 209456125-Mar-07 4:55 
AnswerRe: please! I need code upload video Pin
Wayne Phipps25-Mar-07 6:40
Wayne Phipps25-Mar-07 6:40 
Questionhelp!!! Pin
Member 209456125-Mar-07 4:52
Member 209456125-Mar-07 4:52 
AnswerRe: help!!! Pin
MoustafaS25-Mar-07 5:56
MoustafaS25-Mar-07 5:56 
QuestionDataGridView Pin
OlaMohammed25-Mar-07 3:11
OlaMohammed25-Mar-07 3:11 

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.