有关在表单上显示数据的最佳方法的建议 [英] Advice on best way to display data on a Form
问题描述
我正在使用VS2010和VB.net重写我目前在VBA中的应用程序。
这个,我希望是一个简单的问题,我会告诉我最好的办法。
目前我的表格左边有一个Button,右边是3个TextBox,这些在Button1到14,TextBox 1,2和3到40,41和42的页面上被复制。
单击一个Button时,相应的数据TextBoxes用于以下屏幕和处理,所有非常基本的东西,但我显然必须跟踪所有数字。
我可以在VB中执行此操作。 net也是如此,但我想有一种更好的方法可以做到这一点,使用某种容器,表格或网格......我在这里寻找的是对我最佳选择的一些指导,如果可能的话,指向它正在使用的示例指针,我可以在那里工作...
提前感谢...
我忘了说,这里没有固定数量的行,所以我可以添加或删除行,这就是为什么我目前使用的方法不是最好的...
难以判断没有全面的设计神器,但有些关键想法...
这么多按钮是已经是个坏主意了。你和他们一起工作会有额外的麻烦,忘记可能发疯的用户。
你可以做得更好。例如,它可以是选择列表+一个按钮。列表可以像列表框一样简单,按钮单击偶数处理程序应该根据所选项目进行操作。这对用户来说很清楚,也很方便。
避免混乱。您应该通过适当的视觉设计清楚地显示按钮与某个列表框相关。首先,如果有一组相关的控制措施,应该通过控制的接近程度来证明。您也可以使用面板或组合框,但请记住:没有明确的目的,没有单行或颜色概述!
-SA
I am rewriting an application of my own that is currently in VBA, using VS2010 & VB.net.
This, I hope is a simple question, that will put me clear on the best way to do something.
Currently I have a Form that has a Button on the left, followed by 3 TextBoxes to the right, these are replicated down the page as Button1 thru 14, TextBox 1, 2 & 3 thru 40, 41 & 42.
When a Button is clicked, the data in the corresponding TextBoxes is used in the following screens & processing, all pretty basic stuff, though I obviously have to keep track of all the numbers.
I can do this in VB.net as well, but I imagine that there is a better way of doing this, using some kind of Container, Table or Grid ... all I am looking for here is a bit of guidance on my best option and, if possible, a pointer to an example of it in use and I can work from there ...
Thanks in advance ...
I forgot to say, there are not a fixed number of Rows here, so I could add or delete rows, that''s why the method I currently use isn''t the best ...
Hard to judge not having a comprehensive design artifact, but some key ideas…
So many buttons is already a bad idea. And you will have extra trouble working with them, forget the users who might go crazy.
You can do something much better. For example, it can be a selection list + one button. The list could be as simple as list box, and the button click even handler should act according to a selected item. This will be clear for users and convenient.
Avoid clutter. You should clearly show that a button is related to some list box by proper visual design. First of all, it should be shown by closeness of controls if a groups of related controls. You also can use panels or group boxes, but remember: no single line or outlining by color without clear purpose!
—SA
这篇关于有关在表单上显示数据的最佳方法的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!