而不丢失信息形式之间切换 [英] switching between forms without loss of information

查看:104
本文介绍了而不丢失信息形式之间切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2种形式:Form 1和Form。

I have 2 forms: form1 and form2.

表格1具有文本框和域菜单,要求用户输入有关他/她的自我,例如年龄,种族和形式2还个人信息。

Form 1 has text boxes and domain up menus asking the user to enter personal information about him/her self, e.g Age, race and form 2 also.

问题是从 Form1中窗口2 时,然后突然用户想起他/她要回去 Form1中来纠正一些信息,所以为了这个,我用以前的按钮,从窗口2 到 Form1中,但一旦回到Form1中它被初始化,如果用户没有输入任何内容。

The problem is when going from form1 to form2, and then suddenly the user remembered he/she want to go back to form1 to correct some information, so for this I used a previous button that takes from form2 to form1, but once going back to form1 it is initialized as if the user didn't enter anything.

问题是我怎么动按钮的形式来回无文本框和domainupdown菜单失去自己的信息,而无需用户再次重新输入信息。我使用隐藏(),但仍存在问题。

the question is how do I move button forms back and forth without the textboxes and domainupdown menus losing their information, and no need for the user to reenter the information again. I use Hide() but still the problem exists.

推荐答案

您可以做更多的东西flexibile,就像从一个对象,里面是空的第一accesed当填充这些屏幕,但是当切换到画面2,你从文本框的值,并把它们放到对象,然后当你重新打开屏幕1再次填充从对象,但这次的对象是不是空的文本框,让你有你的数据;你重复这个过程 - 我希望你明白了吧。

You could do something more flexibile, like having those screens populated from an object, which is empty when first accesed, but when switching to screen 2, you take those values from textboxes and put them into the object, and then when you reopen the screen 1 you again populate the textboxes from the object but this time the object isn't empty, so you have your data; and you repeat the process - I hope you get the point.

这篇关于而不丢失信息形式之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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