简体   繁体   English

代码隐藏文件,我如何使用“导入”来使用它? -Visual Basic

[英]Code-behind file, how can I use it with using "imports" ? -Visual Basic

Currently I have this main file: form1 and I've created one code-behind file called globalFunctions ... but now I need to know how to connect the two files.目前我有这个主文件: form1 ,我已经创建了一个名为globalFunctions代码隐藏文件......但现在我需要知道如何连接这两个文件。 I guess I need to use 'import' in somewhere...我想我需要在某处使用“导入”...

To edit a code-behind file in a WinForm project, you can double-click the file name under Files in the Project panel.要编辑 WinForm 项目中的代码隐藏文件,您可以双击“项目”面板中“文件”下的文件名。

Just click the Form1 in the right sidebar and you will enter the code edit panel.只需单击右侧边栏中的Form1 ,您就会进入代码编辑面板。

The Demo演示

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Visual Studio“合并”XAML文件及其代码隐藏 - How to 'merge' a XAML file and its code-behind with Visual Studio 使用 Visual Studio 制作非 aspx 代码隐藏页面 - Using Visual Studio to make non aspx code-behind pages 如何从后台代码转换为ASPX文件? - How to switch from code-behind to ASPX file? 如何使用 Visual Studio 中的设计器在 WinForms 中的 DataGridView 中为列 header 创建多行工具提示(非代码隐藏) - How to create multi-line tooltips for a column header in a DataGridView in WinForms using the designer in Visual Studio (NOT code-behind) Visual Studio 消息:文档项没有代码隐藏文件。 (为 Powershell 构建 GUI) - Visual Studio message: The document item has no code-behind file. (Building GUI for Powershell) 如果将带有VSTA代码的表单移到Visual Studio中,最终用户是否需要VSTO运行时? - If I move a form with VSTA code-behind into Visual Studio, will end users require the VSTO runtime? 如何在Visual Studio中的C ++ / WinRT中添加新的XAML“页面”及其相关的代码隐藏文件? - How to add a new XAML “Page”, and its associated code-behind files, in C++/WinRT in Visual Studio? 为什么我不能使用我为其声明的变量对按钮进行编码,但我可以使用该按钮而无需在 Visual Basic 中声明任何变量? - Why can't I code a button using the variable I declared for it but I can use the button without declaring any variable in Visual Basic? Visual Studio 2005停止添加代码隐藏文件 - Visual Studio 2005 stopped adding code-behind files 如何只在Visual Basic中搜索代码(不包括注释)? - How can I search only the code (excluding comments) in Visual Basic?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM