Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can anyone recommend a book for writing custom control in C#? Pin
Li-kai Liu (Angus)28-Aug-02 22:11
Li-kai Liu (Angus)28-Aug-02 22:11 
GeneralRe: Can anyone recommend a book for writing custom control in C#? Pin
leppie29-Aug-02 0:47
leppie29-Aug-02 0:47 
AnswerRe: Can anyone recommend a book for writing custom control in C#? Pin
Alastair Stell29-Aug-02 4:07
Alastair Stell29-Aug-02 4:07 
GeneralTree/List Hybrids Pin
candan28-Aug-02 14:46
professionalcandan28-Aug-02 14:46 
GeneralRe: Tree/List Hybrids Pin
Stephane Rodriguez.29-Aug-02 1:34
Stephane Rodriguez.29-Aug-02 1:34 
QuestionHow do you unsubscribe to an event? Pin
Rodney S. Foley28-Aug-02 14:18
Rodney S. Foley28-Aug-02 14:18 
AnswerRe: How do you unsubscribe to an event? Pin
Paul Riley28-Aug-02 18:17
Paul Riley28-Aug-02 18:17 
GeneralRe: How do you unsubscribe to an event? Pin
Rodney S. Foley28-Aug-02 19:14
Rodney S. Foley28-Aug-02 19:14 
Thanks, and as hard as it was to believe, and even after reading the related part in the tutorial you linked to, I believe it only because I know how stupid Microsoft can be.

Is anyone with me here on this? Confused | :confused:
You create an EventHandler object and add it to the an event
to subscribe to this event by means of the += operation.  Then
to unsubscribe to this event you have to create another, 
unrelated, EventHandler object and subtract it from the event
by means of the -= operation.  So you are saying I want to
remove an object that is not there, and it actually removes the
object you intended even though you did not reference this
object at all. (I know it must do it via the method passed as
an argument). This is the most illogical and idiotic thing.  If
this is not auto-magical behavior I don't know what is. 
Man, Microsoft went off the deep end on that one. No wonder no publisher prints this, everyone would think it was a type-o. Wink | ;)

As for using event properties to "simulate" pass-through, that looks like more overhead than the way I described. The method I mention also "simulates" pass-through behavior. Regardless, the point is that you cannot actually do any pass-through of event's short of some complicated reflection. All because Microsoft has a few screws loose.

Don't get me wrong, I complain and grip this much about Java and C++ all the time. I am an Equal Opportunity Gripper (EOG).

Big Grin | :-D C# is new, so I have some catching up to do. Big Grin | :-D

Adios,

Aalst

**There is no perfect language
**There is no perfect language
**There is no perfect language
**There is no perfect language
**There is no perfect language
**There is no perfect language
**There is no perfect language
**There is no perfect language
**There is no perfect language
**There is no perfect language
GeneralRe: How do you unsubscribe to an event? Pin
Paul Riley28-Aug-02 19:25
Paul Riley28-Aug-02 19:25 
GeneralRe: How do you unsubscribe to an event? Pin
Rodney S. Foley28-Aug-02 19:50
Rodney S. Foley28-Aug-02 19:50 
GeneralRe: How do you unsubscribe to an event? Pin
leppie28-Aug-02 22:02
leppie28-Aug-02 22:02 
Generalam i dreaming Pin
imran_rafique28-Aug-02 11:58
imran_rafique28-Aug-02 11:58 
GeneralRe: am i dreaming Pin
Rodney S. Foley28-Aug-02 14:46
Rodney S. Foley28-Aug-02 14:46 
GeneralRe: am i dreaming Pin
Nnamdi Onyeyiri28-Aug-02 21:48
Nnamdi Onyeyiri28-Aug-02 21:48 
GeneralRe: am i dreaming Pin
Paul Riley28-Aug-02 17:56
Paul Riley28-Aug-02 17:56 
GeneralRe: am i dreaming Pin
imran_rafique1-Sep-02 12:15
imran_rafique1-Sep-02 12:15 
GeneralRe: am i dreaming Pin
Paul Riley2-Sep-02 5:03
Paul Riley2-Sep-02 5:03 
GeneralRe: am i dreaming Pin
imran_rafique1-Sep-02 12:50
imran_rafique1-Sep-02 12:50 
Generalwho to use it Pin
imran_rafique28-Aug-02 11:22
imran_rafique28-Aug-02 11:22 
GeneralPropertySheet Pin
Mazdak28-Aug-02 9:49
Mazdak28-Aug-02 9:49 
Generalpassing System.Guid into mediaSeek.SetTimeFormat Pin
Jarrett Vance28-Aug-02 8:51
Jarrett Vance28-Aug-02 8:51 
GeneralASP.NET question Pin
User 988528-Aug-02 5:16
User 988528-Aug-02 5:16 
GeneralInterop reference problem... Pin
Ryan Cromwell28-Aug-02 4:48
Ryan Cromwell28-Aug-02 4:48 
QuestionHow to read Embedded Resource in Assembly (File) ? Pin
Chris Richner28-Aug-02 3:15
Chris Richner28-Aug-02 3:15 
AnswerRe: How to read Embedded Resource in Assembly (File) ? Pin
James T. Johnson28-Aug-02 6:31
James T. Johnson28-Aug-02 6:31 

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.