数组中的表单对象 [英] Form Objects in Arrays
问题描述
大家好,我是这个语言的新手,我正在尝试开发一个表单应用程序,而且我有点想要尝试从代码中臃肿,并试图找到最简单的方法来执行此操作。
这就是我所拥有的。 3套44 Picture Boxes 。
我有10种不同的选择。每个都有一个带有预先指定图像的 Image 阵列。
所有图片框将设置在正确的位置。只是根据用户选择动态改变图像。
基本上我想要做的是这样的事情:
Hello all, Im quite new to this language, and Im trying to develop a form application, and Im kinda running into a kinda an attempt to bloat the heck out of the code, and trying to find the easiest way to do this.
So this is what I''ve got. 3 sets of 44 Picture Boxes.
I have 10 different options. Each with an Image array with pre-designated images.
All the Picture Boxes will be setup in the right positions. Just the images with be dynamicly changed based on user selection.
Basicly what I want to do is something like this:
推荐答案
看起来正确。你也可以用List做
Looks about right. You could do with List as well
>> tlhintoq
感谢您的发帖。
我希望我的例子很简单。我无法获取变量来保存表单项。这是我能想到的唯一方法。
>> tlhintoq
Thank you for your post.
I wish it was that simple for my own example. I can''t get the variable to hold the form item. This is the only way I can think to do it.
您已关闭:
You were close:
这篇关于数组中的表单对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!