Click here to Skip to main content
15,913,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about efficiency - Hashtable key types Pin
leppie23-Dec-04 7:42
leppie23-Dec-04 7:42 
GeneralRe: Question about efficiency - Hashtable key types Pin
Tristan Rhodes23-Dec-04 9:57
Tristan Rhodes23-Dec-04 9:57 
GeneralRe: Question about efficiency - Hashtable key types Pin
Matt Gerrans23-Dec-04 11:47
Matt Gerrans23-Dec-04 11:47 
Questionhow to get mirror printing using c# Pin
bigmega23-Dec-04 5:32
bigmega23-Dec-04 5:32 
AnswerRe: how to get mirror printing using c# Pin
Heath Stewart23-Dec-04 8:16
protectorHeath Stewart23-Dec-04 8:16 
GeneralWindows Installer Problem Pin
Asad Hussain23-Dec-04 5:13
Asad Hussain23-Dec-04 5:13 
GeneralRe: Windows Installer Problem Pin
Heath Stewart23-Dec-04 5:19
protectorHeath Stewart23-Dec-04 5:19 
GeneralRe: Windows Installer Problem Pin
leppie23-Dec-04 7:49
leppie23-Dec-04 7:49 
GeneralRe: Windows Installer Problem Pin
Heath Stewart23-Dec-04 7:54
protectorHeath Stewart23-Dec-04 7:54 
Generalfatal error CS0013: Unexpected error writing metadata to file Pin
Divick23-Dec-04 4:34
Divick23-Dec-04 4:34 
GeneralRe: fatal error CS0013: Unexpected error writing metadata to file Pin
Heath Stewart23-Dec-04 6:07
protectorHeath Stewart23-Dec-04 6:07 
GeneralRe: fatal error CS0013: Unexpected error writing metadata to file Pin
Divick23-Dec-04 19:56
Divick23-Dec-04 19:56 
GeneralRe: fatal error CS0013: Unexpected error writing metadata to file Pin
Heath Stewart23-Dec-04 20:01
protectorHeath Stewart23-Dec-04 20:01 
GeneralRe: fatal error CS0013: Unexpected error writing metadata to file Pin
Divick24-Dec-04 0:52
Divick24-Dec-04 0:52 
GeneralRe: fatal error CS0013: Unexpected error writing metadata to file Pin
Heath Stewart27-Dec-04 10:02
protectorHeath Stewart27-Dec-04 10:02 
GeneralUsing separate class to handle events of user controls Pin
jomargon23-Dec-04 3:44
jomargon23-Dec-04 3:44 
GeneralRe: Using separate class to handle events of user controls Pin
Heath Stewart23-Dec-04 6:03
protectorHeath Stewart23-Dec-04 6:03 
The container that accepts these controls must add an event handler for whatever events you want to handle. That event handle is defined by the class contained in Events.cs (that's just a filename, BTW, not a class).

So that the container control can add handlers the event handlers - either instance methods or static methods - must be either public or internal.

An example of adding an event handlers follows:
control1.Click += new EventHandler(someClass.control1_Click);
Please note that what you actually call the event handler method doesn't matter (so long as it doesn't conflict with another method or property name) and that different events have different delegates (event handlers), so be sure to read the documentation for the event before wiring it up to an event handler (because that event handler must have the same method signature as the delegate that defines the event).

For more information about handling and raising events, read Handling and Raising Events[^] in the .NET Framework SDK.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Using separate class to handle events of user controls Pin
jomargon24-Dec-04 15:06
jomargon24-Dec-04 15:06 
GeneralRe: Using separate class to handle events of user controls Pin
Heath Stewart27-Dec-04 10:21
protectorHeath Stewart27-Dec-04 10:21 
GeneralAsa Client Pin
sreejith ss nair23-Dec-04 3:34
sreejith ss nair23-Dec-04 3:34 
GeneralRe: Asa Client Pin
Heath Stewart23-Dec-04 5:57
protectorHeath Stewart23-Dec-04 5:57 
GeneralDraw line between pictureboxes Pin
ninja260523-Dec-04 2:18
ninja260523-Dec-04 2:18 
GeneralRe: Draw line between pictureboxes Pin
Heath Stewart23-Dec-04 5:47
protectorHeath Stewart23-Dec-04 5:47 
GeneralRe: Draw line between pictureboxes Pin
ninja260523-Dec-04 18:37
ninja260523-Dec-04 18:37 
GeneralRe: Draw line between pictureboxes Pin
Heath Stewart23-Dec-04 19:24
protectorHeath Stewart23-Dec-04 19:24 

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.