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.
在属性窗体的事件名称里双击事件名称就可以创建一个事件处理代码,这时代码后置文件会在代码编辑器中打开。
The code-behind file is opened and the cursor is positioned in the selected event handler.
随即将打开代码隐藏文件,并将光标定位在选定的事件处理程序中。
You can define a control in the code-behind file as long as you make it protected or public.
可以在代码隐藏文件中定义控件,但要使其成为受保护或公共控件。
应用推荐