在组合框中绑定2000张图片. [英] Binding 2000 pictures in a combo box.

查看:89
本文介绍了在组合框中绑定2000张图片.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的被困在这里.我需要一个组合框来显示2000张图片,当我单击任何图片时,它应该显示在图片框中.这是我的代码,但是不起作用..

私有子Form1_Load(ByVal发送者作为对象,ByVal e作为System.EventArgs)处理Me.Load
Picbox.BackgroundImageLayout = ImageLayout.Zoom

对于索引As Integer = 1到2000
cmb.Items.Add(index)
下一个


结束子


请尽快帮我.谢谢!

I''m really stuck here. I need a combobox to display 2000 pictures and when I click on any picture, it should display in a picture box. Here''s my code but its not working..

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Picbox.BackgroundImageLayout = ImageLayout.Zoom

For index As Integer = 1 To 2000
cmb.Items.Add(index)
Next


End Sub


Please help me out ASAP. Thanks!

推荐答案

好吧,很明显您不知道自己在做什么.您如何期望向组合框添加2000个整数,以完全添加任何图像.不要猜,买一本书然后看.

2000张图像的内存很大,人们也很容易理解,您确定这是一个不错的UI吗?
Well, it''s clear you have no idea what you''re doing. How did you expect adding 2000 integers to a combobox, to add any images at all. Don''t guess, buy a book and read it.

2000 images is a lot of memory and a lot for people to get through, are you sure that''s good UI ?


这篇关于在组合框中绑定2000张图片.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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