既有孩子又有父母的形式 [英] Making a form both a Child and a Parent

查看:124
本文介绍了既有孩子又有父母的形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名新的Visual Basic 2010程序员,这个问题的答案可能超出了我目前的编程技能,但是在开始之前,我需要知道自己是否处在正确的轨道上.我正在开发一个包含多个部分的书店管理"应用程序,其中包括教科书管理",员工计划"和会计".每个部分实际上可以是一个单独的应用程序.我要做的是创建一个具有Outlook 2007外观的MDI应用程序.使用应用程序代替联系人,任务,便笺等Outlook按钮.我的问题是,每个应用程序也都必须是MDI,显然一个表单不能同时作为父项和子项.我可以将子窗体转换为用户控件并创建一个选项卡界面,通过代码将控件放置在选项卡上吗?有没有更简单的方法来完成此操作,或者通常这只是一个坏主意?

谢谢
Charles

I am a new Visual Basic 2010 programmer and the answer to this question might be beyond my current programming skills, but I need to know if I am on the right track before I start. I am developing a Book Store Management Application that has multiple parts, Textbook Management, Employee Scheduling, and Accounting to name a few. Each part could actually be a separate application. What I want to do is create one MDI application that has an Outlook 2007 look and feel. With the applications taking the place of the contacts, task, notes, etc. outlook buttons. My problem is each application needs to be MDI also and apparently a form can''t be a Parent and a Child at the same time. Could I turn the children forms into user controls and create a tab interface placing the controls on the tab with code? Is there an easier way to accomplish this or is it just a bad idea in general?

Thanks
Charles

推荐答案

Charles,

我会对XAF进行认真的研究-如果您是Visual Basic的新手,则可能会创建用户会(字面意义上)杀死的东西-因此,从专业框架中伸出援手可能会节省很多时间: )
DevExpress XAF [ 60分钟内的Outlook [
Charles,

I''d take a serious look at XAF - If you''re new to Visual Basic, you''re likely to create something users will (literally) kill for - so a helping hand from a professional framework could be a lifesaver :)
DevExpress XAF[^]

Go through this demo:
Outlook in 60 Minutes[^]

XAF enables you to create both a web and a windows application, with a minimum of effort.

Best regards
Espen Harlinn


最肯定的是,您应该将所有子级转换为控件,并使用两个或多个级别的层次结构,然后从选项卡界面,停靠界面,由列表框控制的页面切换或树状视图导航中进行选择,或其他组合形式的内容.

MDI在这里没有什么帮助,通常被非常否定地接受.如果MDE接口完全不属于行业,则使用它,因为它确实很丑陋且不方便.由于这些原因,从未在或多或少可以接受的UI中使用它.

—SA
Most certainly, you should turn all your children into controls and use two or more level hierarchy and choose from tab interface, docking interface, page switch controlled by list box or tree view navigation, or something else in some combination.

MDI is a poor help here and is generally accepted very negatively. Use if MDE interface is completely gone from the industry, because it''s really ugly and inconvenient. It is never used in any more or less acceptable UI by these reasons.

—SA


这篇关于既有孩子又有父母的形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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