C#-列出的事件在哪里,如VB.NET [英] C# - Where are the listed events like in VB.NET

查看:85
本文介绍了C#-列出的事件在哪里,如VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我决定从VB.NET继续使用C#,我发现上面没有像VB.NET一样在表单栏上列出上面的事件,例如表单事件:LOAD,FORMCLOSING,KEYPRESS,KEYDOWN,MOVE等.
C#没有这种自动化功能还是什么?如果可以的话,有人可以带我浏览一个网站,该网站显示了手动添加事件或快速编写此类示例的示例
预先感谢Begi,

I decided to move on C# from VB.NET and i discover that there are not the events listed above on the form bar like in VB.NET for example form events: LOAD, FORMCLOSING, KEYPRESS, KEYDOWN, MOVE etc.
Does c# doesnt have this automated features or what? if so could someone refer me to a website which shows an example of manually adding an event or quick write such an example
thanks in advance Begi,

推荐答案

从VB迁移到C#时,我也问过同样的问题.以下是简单的示例:-

http://msdn.microsoft.com/en-us/library/zwwsdtbk (v = vs.110).aspx
http://sharpertutorials.com/basics-of-windows-forms-applications

要将多个事件连接到Windows窗体(VB和C#)中的单个事件处理程序,请参阅:-
http://msdn.microsoft.com/en-us/library/3exstx90.aspx
I have asked the same question when I moved from VB to C#.Here are simple examples:-

http://msdn.microsoft.com/en-us/library/zwwsdtbk(v=vs.110).aspx
http://sharpertutorials.com/basics-of-windows-forms-applications

To Connect Multiple Events to a Single Event Handler in Windows Forms(VB and C#) refer this:-
http://msdn.microsoft.com/en-us/library/3exstx90.aspx


这篇关于C#-列出的事件在哪里,如VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆