Why we can select events in VB.NET Editor From Top Combo-boxes , But We cannot select the Events For Our C# Project like that.
I Know we can use the Events List in Properties window , But Isn't a way to do it like VB.NET?
For Example in asp.net project , there a events listed for any control we select , can we do something like that for C# ?
In VB.NET We can select and see the events from editor. but in C# we can't . is it true? or there is way to do that?
Here is the image in VB.NET , C# can done it ?
This is sorta a restatement of minitech's answer, but....
VB.Net and C# have different approaches to events, and this is reflected in the IDE. C# essentially treats them like any other delegate, while VB gives them special treatment in order to make them easier to use (declarative approach to adding them, and as you point out showing them in the form editors menubar).
There is no technical reason why they couldn't be shown in the VS when using C#, but not doing so is consistent with the C# approach to events.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.