Click here to Skip to main content
16,010,553 members
Home / Discussions / C#
   

C#

 
GeneralRe: Copy a piece of an Image Pin
Christian Graus28-Oct-04 9:36
protectorChristian Graus28-Oct-04 9:36 
GeneralRe: Copy a piece of an Image Pin
Alex Korchemniy28-Oct-04 9:56
Alex Korchemniy28-Oct-04 9:56 
QuestionHow to do this in C#? Pin
momer28-Oct-04 5:02
momer28-Oct-04 5:02 
AnswerRe: How to do this in C#? Pin
Christian Graus28-Oct-04 9:39
protectorChristian Graus28-Oct-04 9:39 
GeneralRe: How to do this in C#? Pin
Mike Dimmick28-Oct-04 10:47
Mike Dimmick28-Oct-04 10:47 
GeneralRe: How to do this in C#? Pin
momer28-Oct-04 14:57
momer28-Oct-04 14:57 
GeneralRe: How to do this in C#? Pin
Christian Graus28-Oct-04 15:01
protectorChristian Graus28-Oct-04 15:01 
GeneralRe: adding parameter to eventhandler Pin
sreejith ss nair28-Oct-04 2:18
sreejith ss nair28-Oct-04 2:18 
In .NET it is very easy to create a custom event and eventhadlers.You can add any number of parameter on your custom event. What you need to do is, Declare your delegate in such a way.
Eg:
<br />
Delegate declaration.<br />
<br />
public delegate void CustomDel(string a);<br />
<br />
event declaration of the type CustomDel<br />
<br />
private event CustomDel CustomDelEvt;<br />
<br />
Adding event handler.<br />
<br />
CustomdelEvt+=new CustomDel(Button_Devevt);<br />
<br />
Handler definision<br />
<br />
private void Button_Devevt(string a)<br />
{<br />
 Messagebox.Show(a);<br />
}<br />

now you can call this event anywhere in your class file. This is how Custom event.



Sreejith Nair
[ My Articles ]
GeneralRe: adding parameter to eventhandler Pin
Stefan Troschuetz28-Oct-04 2:44
Stefan Troschuetz28-Oct-04 2:44 
GeneralRe: adding parameter to eventhandler Pin
Nick Parker28-Oct-04 3:35
protectorNick Parker28-Oct-04 3:35 
GeneralRe: adding parameter to eventhandler Pin
Member 147654828-Oct-04 3:51
Member 147654828-Oct-04 3:51 
GeneralRe: adding parameter to eventhandler Pin
Nick Parker28-Oct-04 5:01
protectorNick Parker28-Oct-04 5:01 
GeneralRe: adding parameter to eventhandler Pin
Anonymous28-Oct-04 6:08
Anonymous28-Oct-04 6:08 
GeneralRe: adding parameter to eventhandler Pin
Heath Stewart28-Oct-04 14:52
protectorHeath Stewart28-Oct-04 14:52 
Generaladding parameter to eventhandler Pin
Member 147654828-Oct-04 1:57
Member 147654828-Oct-04 1:57 
GeneralModifying Numeric Pad Decimal Key Behavior Pin
Skynyrd28-Oct-04 1:34
Skynyrd28-Oct-04 1:34 
GeneralRe: Modifying Numeric Pad Decimal Key Behavior Pin
Anonymous29-Oct-04 6:37
Anonymous29-Oct-04 6:37 
QuestionUPnP anyone? Pin
Assaad Chalhoub28-Oct-04 1:25
Assaad Chalhoub28-Oct-04 1:25 
GeneralHelp - Dual Display Pin
Craig G Fraser28-Oct-04 0:52
Craig G Fraser28-Oct-04 0:52 
GeneralRe: Help - Dual Display Pin
Heath Stewart28-Oct-04 6:40
protectorHeath Stewart28-Oct-04 6:40 
GeneralRe: Help - Dual Display Pin
Craig G Fraser28-Oct-04 21:28
Craig G Fraser28-Oct-04 21:28 
GeneralRe: Help - Dual Display Pin
Heath Stewart29-Oct-04 5:42
protectorHeath Stewart29-Oct-04 5:42 
Generalinstalling a C# application on a customer's machine Pin
steve_rm28-Oct-04 0:32
steve_rm28-Oct-04 0:32 
GeneralRe: installing a C# application on a customer's machine Pin
sreejith ss nair28-Oct-04 2:02
sreejith ss nair28-Oct-04 2:02 
GeneralRe: installing a C# application on a customer's machine Pin
steve_rm28-Oct-04 4:03
steve_rm28-Oct-04 4:03 

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.