Here's something I wish to learn about how Windows OS interacts with .NET:
Every Windows Forms Control has the ability to handle one or more mouse actions - left click, double click etc. (http://msdn.microsoft.com/library/de...clicktopic.asp
). For example, .NET allows this by generating a Click event for the relevant control everytime the mouse is left clicked.
What I wish to understand is that how does .NET know which Control to generate the Click event for. In other words, if I click on a particular button, the OS recognizes the point on the screen where the click occurs, then translates that information and sends it to .NET which identifies which control does the click correspond to. That, at least, I believe is the chronology.
It'll be great if someone can help me understand this translation between the OS and the .NET. Any help is greatly appreciated.