简体   繁体   English

如何在项目Visual Studio(Winform)中重置缓存?

[英]How to reset cache in project Visual Studio(winform)?

Very weird things happens in my project Visual Studio. 我的项目Visual Studio中发生了非常奇怪的事情。

On the main Form I have three radiobuttons. 在主窗体上,我有三个单选按钮。 One of them is selected. 选择其中之一。 It is first radiobutton with property: checked:true . 这是第一个单选按钮,其属性为: checked:true It has name radioButton8 . 它的名称是radioButton8

When I start project I see that selected the second radio button with name radioButton1 . 当我启动项目时,我看到选择了第二个单选按钮,其名称为radioButton1

I tried to find this element in project by its namw radioButton1 in main Form. 我试图通过主窗体中的namw radioButton1在项目中找到此元素。 But there is not nothing, that can set this in checked state. 但是没有什么可以将其设置为检查状态。

What does happend with VS? VS发生了什么? How to clear project fully and reset cache? 如何完全清除项目并重置缓存?

Also sometimes toolbox becomes to empty. 有时工具箱也会变空。

I did searhing in current project and have found only this in Main.Designer : 我在当前项目中进行过搜索,仅在Main.Designer发现了此Main.Designer

   // radioButton1
            // 
            this.radioButton1.AutoSize = true;
            this.radioButton1.Location = new System.Drawing.Point(23, 58);
            this.radioButton1.Name = "radioButton1";
            this.radioButton1.Size = new System.Drawing.Size(90, 17);
            this.radioButton1.TabIndex = 4;
            this.radioButton1.TabStop = true;
            this.radioButton1.Text = "Прошли тест";
            this.radioButton1.UseVisualStyleBackColor = true;
            this.radioButton1.Click += new System.EventHandler(this.radioButton1_Click);
            // 

I also face this issue many times. 我也多次面对这个问题。 When i clean the project/solution and Build the solution again, also before this i have to delete the obj folder in your project folder. 当我清理项目/解决方案并再次构建解决方案时,同样在此之前,我必须删除项目文件夹中的obj文件夹。

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

相关问题 将Web引用添加到Visual Studio WinForm项目 - Adding a Web Reference to Visual Studio WinForm Project 如何在 Visual Studio 中将 WInform 连接到 Webform - How to connect WInform to Webform in Visual Studio Visual Studio认为Winform是变量 - Visual Studio think that winform is a variable 如何筛选使用Visual Studio创建的C#Winform datagridview - How to filter C# Winform datagridview that was created with Visual Studio 如何在Visual Studio中修改新WinForm的默认属性 - How to modify default properties of new WinForm in visual studio 如何在WinForm和C#中使用.Net Native(Visual Studio 2015)? - How to use .Net Native in WinForm and C# (Visual Studio 2015)? 如何在Visual Studio 2010中创建Winform应用程序以托管WCF服务 - How to create a winform app in visual studio 2010 to host a wcf service 如何在Visual Studio 2008中打开和编译.net 4.5 Winform应用程序 - how to open and compile .net 4.5 winform app in visual studio 2008 C#:Visual-Studio:如何最大化Winform上的特定面板 - C#:Visual-Studio: How to maximize a specific panel on a winform 如何将Visual Studio 2013项目降级为Visual Studio 2008项目? - How to downgrade a Visual Studio 2013 project to a Visual Studio 2008 project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM