Re: raising events by name

Tech-Archive recommends: Speed Up your PC by fixing your registry



Jon,

As I tried to explain too you, but starting about more things than the wm message makes it without any need complex, like you showed with your reply.

For instance, you certainly won't get a WM_CLICK message occurring in
the server when a button is clicked in a web page.

By the way, you get normally a XXX_Click back, the handling of that is exact the same as a WM_CLICK (I did this the last time at thursday so I am completely sure of that).

As you use C# it is just a double click in the event properties of the button and then there is exactly the same created as in a windows form (beside the delegate). In VB it is just setting the handler at the method to the event from the button in the page.
(Although I assume that the WM click is in web pages not used but a kind of array, the same as I replied in my first answer to the OP, and by you repeated somewhere at the end but then instead of an array a dictionary but that is in my idea just a name)

Cor

"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> schreef in bericht news:MPG.22d872c94c52a11cdfb@xxxxxxxxxxxxxxxxxxxxxxx
Cor Ligthert[MVP] <notmyfirstname@xxxxxxxxx> wrote:
> I'm not sure how bringing the OS into the picture unnecessarily (and
> incorrectly) makes it simpler though. To my mind it complicates it for
> no reason.

As this is mostly asked in relation to the WM messages.

A wm message is a simple thing to describe, that a page gives a string back,
which is elevated by the ASPNET program, probably behind the scene in a
dictionary or whatever, that invoke using probably a switch, a method is
something longer to describe and adds in my idea nothing to the subject.

WM messages are usually in the context of Windows GUIs, not in ASP.NET.

For instance, you certainly won't get a WM_CLICK message occurring in
the server when a button is clicked in a web page.

--
Jon Skeet - <skeet@xxxxxxxxx>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon_skeet
C# in Depth: http://csharpindepth.com

.


Quantcast