为什么我在Designer中获得c#代码而不是代码? [英] Why am i getting c# code in Designer instead of code behind?
本文介绍了为什么我在Designer中获得c#代码而不是代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在设计师而不是代码背后获得c#代码(在双击点击控件上自动生成)。我该如何解决这个问题?
解决方案
确保在添加新项目对话框中启用将代码放在单独的文件中复选框
I am getting c# code (which is generated automatically on doubble clicking controls) in designer instead of code behind. How can i solve this?
解决方案
Make sure Place code in separate file check box is enabled in the Add New Item dialog box
这篇关于为什么我在Designer中获得c#代码而不是代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文