如何在winform C#中清除作为公共静态传递的值 [英] How do I clear value passed as public static in winform C#
本文介绍了如何在winform C#中清除作为公共静态传递的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在windows中运行项目,并且我已经使用公共静态int id在另一个表单上公开访问它,比如在winform中的会话。
但问题是我不能清楚另一个值入门。
你可以提出任何解决办法来解决这个问题。
我尝试了什么:
public static int id;
并在另一页中用作id
i am running project in windows, and i have used public static int id to access it publically on another forms, like session in winform.
but the problem is i cant clear that value for another entry.
can u suggest any solution to clear this.
What I have tried:
public static int id;
and used it in another page as id
推荐答案
嗨
您可以设置值0或覆盖新值。
Hi
You can set the value 0 or overwrite new value.
这篇关于如何在winform C#中清除作为公共静态传递的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文