如何在代码视图中打开对象/过程? [英] How do I turn on object/procedure in code view?

查看:85
本文介绍了如何在代码视图中打开对象/过程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VBA中有2个下拉列表,通过选择对象和相关过程,您可以快速编写子目录。 (即'button& click'或'userform& initialize')



我可以发誓我在Visual Studio 2015中看到了这个,但我找不到如何重新打开它。



有谁可以帮我这个?



我尝试了什么:



我查看了所有'查看'选项,现在正在搜索选项对话框。如果我知道它的名称会有所帮助。

In VBA there are 2 drop downs that allow you to quickly write subs, by choosing an object and a related procedure. (i.e. 'button & click' or 'userform & initialize')

I could have sworn I saw this in Visual Studio 2015, but I can't find out how to turn it back on.

Can anyone help me with this?

What I have tried:

I have looked at all the 'View' options and am now scouring the options dialogs. It would help if I knew what it was called.

推荐答案

如果你的意思是自动为事件添加处理程序并插入空白处理程序模板方法那么它很简单:

突出显示控件或窗体。

要么

1)双击控件(添加默认事件 - 对于一个按钮点击,对于一个加载的表格)



2)查看属性窗格并从窗格工具中选择事件 - 它看起来像闪电。双击要处理的事件。



无论哪种方式,都会为您添加空白方法,您将进入代码视图进行编辑。
If you mean "automatically add a handler to an event and insert a blank handler template method" then it's simple:
Highlight the control or form.
Either
1) double click the control (to add the default event - for a Button that's Click, for a Form that's Load)
Or
2) Look at the properties pane and select Events from the pane tools - it looks like a lightning bolt. Double click the event you want to handle.

Either way the blank method will be added for you and you will be taken to the Code view to edit it.


工具 - >选项 - >文字编辑器 - >基本 - >一般。您正在寻找标有导航栏的复选框。
Tools -> Options -> Text Editor -> Basic -> General. You're looking for the checkbox labeled "Navigation Bar".


这篇关于如何在代码视图中打开对象/过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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