如何防止openinng多个表单实例 [英] How to prevent openinng multiple instance of forms

查看:63
本文介绍了如何防止openinng多个表单实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有一个使用数据集的数据库桌面应用程序,我的问题是当我创建一个表单对象以显示它是第一次正常打开但是当你想在下次打开相同的表格时打开两次然后它会打开第四次...等等
(8,16,32我实际测试的是)你想在主菜单上浏览windows项目你填写在同一事件上打开的许多表格以显示表格,我没有合理的理由来解决问题。



谢谢




Esmat

解决方案

< blockquote>

您好,


请显示用于打开表单的代码,如果这是MDI,则显示。


Hi all,

I have a database desktop application using dataset ,my problem is when i create an object of form to show it is open normally for first time but when you want to open the same form next time it will open twice times then it will open fourth times ... etc (8,16,32 i actually test that) that you want to explore windows item on the main menu you fill many forms opened on the same event for display form ,really i have no logical reason to resolve problem.

Thanks


Esmat

解决方案

Hello,

Please show the code used to open the form and if this is MDI or not.


这篇关于如何防止openinng多个表单实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆