一个窗口,多个视图 (VB .Net) [英] One Window, multiple Views (VB .Net)

查看:26
本文介绍了一个窗口,多个视图 (VB .Net)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解了 MDI 应用程序,但这不是我想要的.我想要一个可以有多个内容集的窗口(没有子窗口).例如:我想要一组标签和文本框来保存对象(如人)的信息.这个人有几个子项.我也想在我的主窗体中为这些子项设置一组标签和文本框.但我不希望这两个对象的标签和文本框集同时可见.

I read about MDI-Applications, but that's not what I want. I would like to have one Window (without child-windows) that can have multiple content-sets. For example: I want to have a set of lables and textboxes to save information for an object (like a person). This person has several sub-items. I want to have a set of lables and textboxes for these sub-items in my mainform too. But I don't want the lables- and textboxes-set of these two objects to be both visible at the same time.

我希望你能理解我的意思(我是德国人,我真的不知道如何用英语描述我的愿望).我希望,有人可以给我一个提示...

I hope, you'll understand what I mean (I'm german and I don't really know how to describe my wishes in english). I hope, someone could give me a tip...

推荐答案

我认为您想要做的是将您的控件放在面板中,然后适当地显示或隐藏面板.这是一个例子:http://www.mindstick.com/Articles/561eedef-170f-4ccc-98bb-efa4ee97ccdf/?Panel%20Control%20in%20VB.Net

I think what you want to do is put your controls in panels and then show or hide the panel appropriately. Here is an example: http://www.mindstick.com/Articles/561eedef-170f-4ccc-98bb-efa4ee97ccdf/?Panel%20Control%20in%20VB.Net

这篇关于一个窗口,多个视图 (VB .Net)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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