Click here to Skip to main content
15,889,874 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralUnable to run the application on machine without VC++ installed Pin
sachin.kumar15-Feb-05 21:25
sachin.kumar15-Feb-05 21:25 
GeneralRe: Unable to run the application on machine without VC++ installed Pin
Colin Angus Mackay16-Feb-05 0:07
Colin Angus Mackay16-Feb-05 0:07 
GeneralRe: Unable to run the application on machine without VC++ installed Pin
Anonymous17-Feb-05 17:08
Anonymous17-Feb-05 17:08 
GeneralRe: Unable to run the application on machine without VC++ installed Pin
yasinPL17-Feb-05 14:00
yasinPL17-Feb-05 14:00 
Generalcompress fonts at runtime Pin
tuanattech215-Feb-05 19:43
tuanattech215-Feb-05 19:43 
GeneralClick Events in .NET Pin
sarabjs15-Feb-05 9:30
sarabjs15-Feb-05 9:30 
GeneralRe: Click Events in .NET Pin
S. Senthil Kumar15-Feb-05 11:05
S. Senthil Kumar15-Feb-05 11:05 
GeneralRe: Click Events in .NET Pin
sarabjs15-Feb-05 11:58
sarabjs15-Feb-05 11:58 
Thanks for the help.. Though I'm still not completely clear:

"The window procedure simply calls the delegates registered for that event"

As per my impression, delegates that make calls to the respective event handlers whenever an event for a Control is raised are invoked inside the Control itself. Thus, to "simply call the delegates," the Windows procedure should first be able to identify which Control is it going to call the delegates of.

Thus, either Windows directly makes a call to this Control, or it simply passes the event to the active process, which (by virtue of routines that were directly added by .NET when the program was compiled) then makes a call to this Control (specifically, to the OnEventName() method within the definition of this control). In both these cases however, there needs to be a way to identify which Control (button, scrollbar etc.)does the specific click correspond to.

In other words, a literal translation between the co-ordinates of the pointer when the mouse was clicked and the Control the pointer was above at that time takes place. It is this translation that I need to get at the root of.

"The Winforms button is a normal Windows button wrapped in managed code. There are no native .NET UI controls"

I think you're right. I guess the .NET's only purpose - like that of any runtime environment - is to successfully compile and debug the code, adding any extra routines that it might need to. A few examples of such actions which are relevant to our context here and which .NET directly takes care of are:

1. Delegate definitions - A delegate declaration is sufficient to define a delegate class. The declaration supplies the signature of the delegate, and the common language runtime provides the complete implementation.
2. Event Wiring - A designer such as Visual Studio .NET automatically completes the event wiring by generating code which is necessary for the purpose.
3. Event Hooks - When the compiler encounters an event keyword (such as - public event HandlerNameEventHandler HandlerInstant;), it creates a private member such as and two public methods: add_Alarm and remove_Alarm. These methods are event hooks that allow delegates to be combined or removed from the event delegate. The details are hidden from the programmer.
(The above are taken from the MSDN Library: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconevents.asp)

Once the self-executable/dll is ready, .NET I believe is out of the picture.

Thanks for the help anyways..
GeneralRe: Click Events in .NET Pin
sarabjs15-Feb-05 13:03
sarabjs15-Feb-05 13:03 
GeneralRe: Click Events in .NET Pin
S. Senthil Kumar15-Feb-05 18:26
S. Senthil Kumar15-Feb-05 18:26 
GeneralRe: Click Events in .NET Pin
sarabjs22-Feb-05 10:22
sarabjs22-Feb-05 10:22 
GeneralDeserialization throws "No Top Object" exception. Pin
ganeshvijay14-Feb-05 20:55
ganeshvijay14-Feb-05 20:55 
Generalsuitability of .net for network servers Pin
kon_t14-Feb-05 8:25
kon_t14-Feb-05 8:25 
GeneralRe: suitability of .net for network servers Pin
Mike Dimmick15-Feb-05 2:20
Mike Dimmick15-Feb-05 2:20 
GeneralRe: suitability of .net for network servers Pin
kon_t16-Feb-05 15:42
kon_t16-Feb-05 15:42 
GeneralRe: suitability of .net for network servers Pin
Mike Dimmick17-Feb-05 2:57
Mike Dimmick17-Feb-05 2:57 
GeneralRe: suitability of .net for network servers Pin
kon_t17-Feb-05 11:46
kon_t17-Feb-05 11:46 
GeneralRe: suitability of .net for network servers Pin
Rei Miyasaka22-Feb-05 21:43
Rei Miyasaka22-Feb-05 21:43 
GeneralRe: suitability of .net for network servers Pin
Sebastian Schneider23-Feb-05 2:09
Sebastian Schneider23-Feb-05 2:09 
General.Net Control Printing Pin
khurram rasheed13-Feb-05 22:05
khurram rasheed13-Feb-05 22:05 
GeneralSummation of Hours in Dataset Pin
Vipul Mehta13-Feb-05 21:20
Vipul Mehta13-Feb-05 21:20 
GeneralRe: Summation of Hours in Dataset Pin
yasinPL17-Feb-05 14:09
yasinPL17-Feb-05 14:09 
GeneralCreate of PS Pin
sharathgowda13-Feb-05 18:10
sharathgowda13-Feb-05 18:10 
GeneralRe: Create of PS Pin
Mike Dimmick15-Feb-05 3:02
Mike Dimmick15-Feb-05 3:02 
GeneralGet Top 10 from a search engine Pin
Mohsen Saad12-Feb-05 7:38
Mohsen Saad12-Feb-05 7:38 

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.