在Windows窗体应用程序中运行控制台C#代码

在Windows窗体应用程序中运行控制台C#代码

问题描述:

我想在Windows窗体应用程序中为屏幕添加矩阵雨效果。我得到了控制台应用程序的C#代码。当我尝试复制相同的代码时,它显示异常。请建议我如何做到这一点。我只是想知道它是否可能或
不是吗?

I want to add matrix rain effect for the Screen in Windows Form Application. I got C# code for Console Application. When I try to copy the same code it is showing Exception. Please suggest me how to do that. I just want to know whether it is possible or not?

有什么例外?向我们展示相关代码也可能有所帮助。
What's the exception? And showing us the relevant code might help too.