哪里是在Visual C#事件的下拉列表中? [英] Where's the dropdown list of events in Visual C#?
问题描述
本文提到了默认的事件处理程序在Visual Studio(C#)下拉的可用性。我找不到它。什么是在线code?我假设的aspx文件内C#code?我试过了,没有下拉列表。
This article mentions the availability of a dropdown of default event handlers in Visual Studio (C#). I can't find it. What is in-line code? I am assuming C# code inside the aspx file? I tried that and there was no dropdown.
阅读略低于第一灰色框就行了。我使用VS 2008 SP1。
Read the line just below the first grey box. I am using VS 2008 SP1.
推荐答案
你说的是这个小组?这将列出一个给定的控制在设计时,所有的事件。您可以通过点击属性面板中的事件按钮(见图1)访问它。双击现场(2)导致的Visual Studio自动生成一个方法存根。
Are you talking about this panel? This lists all the events for a given control when in the Designer. You can access it by clicking the "Events" button in the Properties panel (see 1). Double-clicking in the field (2) causes Visual Studio to automatically generate a method stub.
另外,如果您正在查看的code,你可以键入控制后面的名字。激活智能感知,选择要处理事件,然后键入+ =和preSS <大骨节病>标签骨节病>两次,以达到同样的效果。
Alternatively, if you're viewing the code, you can type the name of the control followed by "." to activate Intellisense, select the event you want to handle, then type "+=" and press Tab twice to achieve the same effect.
这篇关于哪里是在Visual C#事件的下拉列表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!