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

C#

 
GeneralRe: Problems DWebBrowserEvents2_DocumentCompleteEvent Event Pin
lags200517-Jun-04 2:06
lags200517-Jun-04 2:06 
GeneralRe: Problems DWebBrowserEvents2_DocumentCompleteEvent Event Pin
Heath Stewart17-Jun-04 2:14
protectorHeath Stewart17-Jun-04 2:14 
GeneralThreads Pin
bouli17-Jun-04 1:03
bouli17-Jun-04 1:03 
GeneralRe: Threads Pin
Corinna John17-Jun-04 1:32
Corinna John17-Jun-04 1:32 
GeneralLog URL's visited Pin
Stuggo17-Jun-04 1:00
Stuggo17-Jun-04 1:00 
GeneralRe: Log URL's visited Pin
Heath Stewart17-Jun-04 1:39
protectorHeath Stewart17-Jun-04 1:39 
GeneralEvents Pin
bouli17-Jun-04 1:00
bouli17-Jun-04 1:00 
GeneralRe: Events Pin
Heath Stewart17-Jun-04 1:34
protectorHeath Stewart17-Jun-04 1:34 
The correct way is to define a delegate that extends EventHandler, or use an existing one (depending on whether or not a particular delegate declares a param with an EventArgs-derivative that suits your needs).

Raising Events[^] in the .NET Framework SDK explains the recommended way of firing events, which includes declaring a delegate and EventArgs derivative (like I said, if necessary), declaring the event on your class, and making a protected virtual member named OnEventName that actually fires the event (so that derivative classes can either override it to handle events without a delegate (faster, with more control) or raise the event themselves).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Events Pin
Corinna John17-Jun-04 1:47
Corinna John17-Jun-04 1:47 
GeneralRe: Events Pin
Heath Stewart17-Jun-04 1:50
protectorHeath Stewart17-Jun-04 1:50 
GeneralRe: Events Pin
bouli17-Jun-04 1:56
bouli17-Jun-04 1:56 
GeneralRe: Events Pin
bouli17-Jun-04 1:48
bouli17-Jun-04 1:48 
GeneralRe: Events Pin
Heath Stewart17-Jun-04 1:52
protectorHeath Stewart17-Jun-04 1:52 
GeneralRe: Events Pin
bouli17-Jun-04 2:08
bouli17-Jun-04 2:08 
GeneralRe: Events Pin
Heath Stewart17-Jun-04 2:15
protectorHeath Stewart17-Jun-04 2:15 
GeneralRe: Events Pin
bouli17-Jun-04 2:34
bouli17-Jun-04 2:34 
GeneralRe: Events Pin
Corinna John17-Jun-04 1:39
Corinna John17-Jun-04 1:39 
GeneralRe: Events Pin
bouli17-Jun-04 1:45
bouli17-Jun-04 1:45 
GeneralRe: Events Pin
Corinna John17-Jun-04 1:52
Corinna John17-Jun-04 1:52 
GeneralRe: Events Pin
bouli17-Jun-04 1:56
bouli17-Jun-04 1:56 
GeneralRe: Events Pin
bouli17-Jun-04 2:01
bouli17-Jun-04 2:01 
Generalcheck programatically if IIS is installed Pin
michalJ17-Jun-04 0:13
michalJ17-Jun-04 0:13 
GeneralRe: check programatically if IIS is installed Pin
Heath Stewart17-Jun-04 1:27
protectorHeath Stewart17-Jun-04 1:27 
GeneralRe: check programatically if IIS is installed Pin
michalJ17-Jun-04 4:51
michalJ17-Jun-04 4:51 
GeneralInvert grapics in 2D Pin
Mikke_x16-Jun-04 22:30
Mikke_x16-Jun-04 22:30 

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.