如何查看特定列表框项目,VB中的特定标签? [英] How to view specific listbox items, to specific labels in VB?

查看:123
本文介绍了如何查看特定列表框项目,VB中的特定标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

我正在尝试制作一个小图片下载器,其主要思想是我有一个加载的文档,大约7000行代码用于查找图片在网上。在文件中,每张照片有5行代码,应单独查看以标记标签。然后我的下载部分程序应该下载图片,然后每个标签应该跳过5行,显示下一系列的数字,准备下载。



那么什么我正在寻找的是一些可以读取ListBox中的specefic行的代码,并将它们显示在标签中。下载后,它应跳过5行,并准备好显示下一个代码。每个标签一次只能查看1个字符串。



任何人都可以让我使用一段代码或以非专业的方式指导我如何做这个?代码示例是首选..



谢谢,

nikko4913

Hello!
I'm trying to make a little picture downloader, and the main idea of it is that i have a loaded document, with about 7000 lines of codes which are used to find pictures on the web. In the file there is 5 lines of codes for each photo, that should individually be viewed to sperate labels. Then my download part of the program should download the picture, and afterwards each label should skip 5 lines, displaying the next series of numbers, ready for download.

So what i'm looking for is some piece of code that could read specefic lines in a ListBox, and display them in a label. After download, it should skip 5 lines, and get the next codes ready for display. Each label should only view 1 string at a time.

Could anyone make me a piece of code to use or instruct me on a non-pro scale on how to do this? Code examples is preferred..

Thanks,
nikko4913

推荐答案

你可以通过编程方式选择一个列表框索引并执行
You could programmatically select a listbox index and do
Label1.Text = Listbox1.SelectedIndex



然后你可以做一个循环并告诉它跳过。跳过部分你可以创建一个整数,如果它是一个特定的数字,跳过接下来的五个数字并继续循环。



对于一些特别困难的东西(不是真的)做一些多线程,这样你的计算机就不会让你失望多久。


You could then do a loop and tell it to skip. The skip part you could create an integer and if it is a specific number, skip the next five numbers and continue with the loop.

For something extra-difficult (not really) do some multi-threading so your computer doesn't throw you out for however long.


这篇关于如何查看特定列表框项目,VB中的特定标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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