且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

多次打开表格

更新时间:2022-11-28 10:32:46

要么重复显示相同的形式,要么使这些变量变静态的.或者也许将它们存储在一个单独的类中,该类由它自己进行序列化,并且是单例,因此所有表单实例都可以从那里访问相同的数据.

Either show the same form over and over, or make those variables static.  Or perhaps store them in a seperate class that does it''s own serialisation, and is a singleton, so all form instances can access the same data from there.

如果您发布了代码,那么我将就如何更改它提出具体建议.如果信息"包含控件的状态,那么除非反复编写相同的表单而不是创建新的表单,否则除非您还编写代码来保存和恢复这些状态,否则窍门不存在.

If you posted code, then I''d have made specific suggestions on how to change it.  If the ''info'' includes the state of controls, then only showing the same form over and over instead of creating new ones will do the trick, unless you also write code to save and restore those states.


谢谢!

我尝试一下,明天将代码发送给您...

我不知道那里对您的答案发表评论,但谢谢:)

Thanks!

Il try that and send u the code tomorrow...

I duno where to comment on your Answer But Thanks :)