Click here to Skip to main content
15,902,908 members
Home / Discussions / C#
   

C#

 
GeneralRe: byte[] cast to a string Pin
Jörgen Sigvardsson30-Oct-03 12:45
Jörgen Sigvardsson30-Oct-03 12:45 
GeneralRe: byte[] cast to a string Pin
Blake Coverett30-Oct-03 11:35
Blake Coverett30-Oct-03 11:35 
GeneralRe: byte[] cast to a string Pin
Tym!30-Oct-03 12:33
Tym!30-Oct-03 12:33 
GeneralRe: byte[] cast to a string Pin
Jeff Varszegi30-Oct-03 13:11
professionalJeff Varszegi30-Oct-03 13:11 
GeneralRe: byte[] cast to a string Pin
leppie30-Oct-03 14:29
leppie30-Oct-03 14:29 
GeneralRe: byte[] cast to a string Pin
Tym!3-Nov-03 6:30
Tym!3-Nov-03 6:30 
Generalput codes into an event! Pin
Silly Boy30-Oct-03 6:19
Silly Boy30-Oct-03 6:19 
GeneralRe: put codes into an event! Pin
Heath Stewart30-Oct-03 9:09
protectorHeath Stewart30-Oct-03 9:09 
I'm not sure I follow. The event system for the C# language works as follows:
someControl.Click += new EventHandler(MyHandleMethod); // Add handler
someControl.Click -= new EventHandler(MyHandleMethod) // Remove handler
If you think this is difficult or complex, try the "event" system in Java! Smile | :)

This code is automatically translated by the C# compiler into something else that does amount to creating a new delegate and adding it to a collection. Internally, class events essentially become a table with collections keys (the table key is the event name, the value is a collection of delegate), but - again - you don't need to worry about doing this in your source code (unless you really want to)! Just type event [EventHandlerDelegate Type] [EventName]. There's plenty of documentation on the event system in C# and VB.NET in the .NET SDK docs, which is always a good place to check-out for newbies (especially, IMO, at least glancing over the entirety of the base class library to see what's available).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: put codes into an event! Pin
Judah Gabriel Himango30-Oct-03 9:12
sponsorJudah Gabriel Himango30-Oct-03 9:12 
GeneralRe: put codes into an event! Pin
Heath Stewart30-Oct-03 9:25
protectorHeath Stewart30-Oct-03 9:25 
GeneralRe: put codes into an event! Pin
Nick Parker30-Oct-03 13:28
protectorNick Parker30-Oct-03 13:28 
GeneralMoving a control Pin
mcgahanfl30-Oct-03 5:46
mcgahanfl30-Oct-03 5:46 
GeneralRe: Moving a control Pin
Mike Ellison30-Oct-03 6:21
Mike Ellison30-Oct-03 6:21 
GeneralRe: Moving a control Pin
mcgahanfl30-Oct-03 6:54
mcgahanfl30-Oct-03 6:54 
Generalpassing the datatable as a parameter 2 the SP Pin
venubabu30-Oct-03 3:26
venubabu30-Oct-03 3:26 
GeneralRe: passing the datatable as a parameter 2 the SP Pin
Paul Watson30-Oct-03 3:54
sitebuilderPaul Watson30-Oct-03 3:54 
GeneralLaunch a programm from an application Pin
Matthieu.C29-Oct-03 22:31
Matthieu.C29-Oct-03 22:31 
GeneralRe: Launch a programm from an application Pin
Corinna John30-Oct-03 2:37
Corinna John30-Oct-03 2:37 
QuestionRichTextBox?? Pin
electronicm29-Oct-03 21:38
electronicm29-Oct-03 21:38 
AnswerRe: RichTextBox?? Pin
Mazdak30-Oct-03 5:43
Mazdak30-Oct-03 5:43 
GeneralRe: RichTextBox?? Pin
Judah Gabriel Himango30-Oct-03 9:15
sponsorJudah Gabriel Himango30-Oct-03 9:15 
QuestionHow to beautify Progress Bar? Pin
softair29-Oct-03 21:19
softair29-Oct-03 21:19 
AnswerRe: How to beautify Progress Bar? Pin
Heath Stewart30-Oct-03 3:00
protectorHeath Stewart30-Oct-03 3:00 
GeneralProblems on NiceMenu Pin
softair29-Oct-03 21:10
softair29-Oct-03 21:10 
GeneralRe: Problems on NiceMenu Pin
Heath Stewart30-Oct-03 3:09
protectorHeath Stewart30-Oct-03 3:09 

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.