在Visual Studio 2010中查看设计器代码 [英] View Designer Code in Visual Studio 2010

查看:180
本文介绍了在Visual Studio 2010中查看设计器代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

打开VB文件的Designer(自动生成)代码的标准方法是什么?

What is a standard way to open the Designer (automatically generated) code for a VB file?

作为一种解决方法,我可以通过在整个解决方案中搜索通常只在以下文件中找到的某些关键字来实现:

As a workaround, I can get to it by searching the entire solution for some keyword that is usually only found in those files: Global, Partial, etc.

推荐答案

打开解决方案资源管理器.顶部的工具栏上有一个工具显示所有文件"(这是我的Visual Studio版本的左起第二个).单击该工具.现在,您所有的Form文件旁边都会有一个箭头.单击该箭头以展开.查找名为FormName.designer.vb的代码文件.双击以打开它.

Open the Solution Explorer. Along the toolbar at the top there is a tool Show All Files (it is the 2nd from the left on my version of visual studio). Click on that tool. All of your Form files will now have an arrow beside them. click on that arrow to expand. Look for the code file named FormName.designer.vb. Double-click on it to open.

这篇关于在Visual Studio 2010中查看设计器代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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