一种模块化形式正在关闭另一种模块化形式 [英] one modular form is closing another modular form

查看:46
本文介绍了一种模块化形式正在关闭另一种模块化形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

m在vb.net中开发应用程序
有一个表单名称主表单",其中有一个按钮名称添加抵押"
现在,当用户单击此按钮时,将打开一个新窗口.
此窗口以模块化形式打开.
现在,该窗口的按钮名称为兴趣详细信息"
当用户单击此按钮时,将打开一个新窗口,显示兴趣详细信息".
此表单也是模块化表单.(一旦在窗口中打开此窗口,则可以在此窗口n后面的位置c在主窗口后面添加抵押窗口n.)
现在,当用户取消此利息详细信息表格之前,即添加抵押表格也将关闭.

我面临的问题是,当用户单击兴趣详细信息"表单中的关闭按钮时,它不应关闭添加抵押"表单.

解决方案

如果关闭一种形式导致另一种形式关闭,那么您的代码中有些不对劲.我怀疑您在其中一个事件处理程序中放置了一个Close()放错了位置,但是如果没有更多信息,就无法确切地说出位置.

您正在使用什么代码关闭兴趣详细信息"表单,以及该表单位于何处?在什么情况下?用户.从UI设计的角度来看,这仅仅是犯罪. 不要这样做!相反,请重新考虑您的UI设计,听取良好的友好建议.

—SA


m developing a application in vb.net
There is a form name "main form" which has a button name "add mortgage"
now when user click on this a new window gets open.
this window is open as modular form.
now this window had a button name "interest details"
when user click on this button a new window gets open showing "interest details".
this form is also a modular form.(once this window is open in screen u can c this window n behind u will c add mortgage window n behind it the main window.)
now when user cancel this interest details form the previous form i.e add mortgage form also gets close.

The issue that i am facing is that when the user clicks on close button in "interest details" form it should not close the form "add mortgage"

解决方案

If closing one form causes another form to close, then you have something amiss in your code. I suspect that you have a misplaced Close() in one of the event handlers, but without more info, it''s impossible to say exactly where.

What code are you using to close the "interest details" form and where is it located, in what event?


This would be abuse of excepted UI style and common practice, might greatly irritate your user. From the stand point of UI design, this is a mere crime. Don''t do it! Instead, re-think you UI design, listen to a good friendly advice.

—SA


这篇关于一种模块化形式正在关闭另一种模块化形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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