events - C# button click EventArgs e information -


when click on button in e.g. winforms application, information passed eventargs e of event method? i'm wondering because i'm using as keyword "convert" e mouse event in order coordinates of point button clicked.

edit: in following example can convert variable e object of type mouseeventargs, , want know other types of event arguments e can converted.

private void someevent(object sender, eventargs e) {   int xcoord = (e mouseeventargs).x; } 

this depends on event, underlying windows messages winforms events have no such concept, ever eventargs created determine type , information contains. framework or can make own class derived eventargs.

after .net4.5 doesn't have derive eventargs


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -