You can create an event handler by using the Events TAB of the Properties window.
在属性窗体创建事件处理代码的方法是点击事件标签。
Your window procedure is the event handler.
窗口过程就是事件处理器。
The tag shown below creates a Window object whose onx event is wired to the event handler myHandler.
下面显示的标记创建一个Window对象,它的onx事件与事件处理程序myhandler相关联。
When one of these menu text items is clicked, then the corresponding onclick event handler makes the corresponding screen appear in the browser window.
当单击这些菜单文本项时,对应的onclick事件处理函数让对应的屏幕出现在浏览器窗口中。
To create an event handler with the default name, you just double-click the event name in the Properties window. The event handler is created and the code-behind file is opened in the code editor.
在属性窗体的事件名称里双击事件名称就可以创建一个事件处理代码,这时代码后置文件会在代码编辑器中打开。
If you add an event handler from the Properties window, you can add it only to the class that implements the dialog box.
如果从“属性”窗口添加事件处理程序,则只能将它添加到实现对话框的类。
Message handler names that you have added appear in the right column of the reflected messages window.
已添加的消息处理程序名称出现在反射消息窗口的右列中。
Message handler names that you have added appear in the right column of the reflected messages window.
已添加的消息处理程序名称出现在反射消息窗口的右列中。
应用推荐