如果找到特定文本,则将特定图像加载到图片框中? [英] If certain text is found then load a certain image into the picturebox?

查看:74
本文介绍了如果找到特定文本,则将特定图像加载到图片框中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我希望根据我设置的字段中的数据将图像加载到图片框中.

Basically i want an image to load into the picturebox depending on what data is in the field i set.

例如

            stream.Position =& HDB85

            stream.Position = &HDB85

elseif stream.position ="man utd";然后

elseif stream.position = "man utd" then

picturebox1.load(manutd.jpg)

picturebox1.load(manutd.jpg)

endif

显然上述方法无效..但这只是解释了我的建议.

欢呼声

Gaz

推荐答案

基本上,我希望根据我设置的字段中的数据将图像加载到图片框中.

Basically i want an image to load into the picturebox depending on what data is in the field i set.

例如

            stream.Position =& HDB85

            stream.Position = &HDB85

elseif stream.position ="man utd";然后

elseif stream.position = "man utd" then

picturebox1.load(manutd.jpg)

picturebox1.load(manutd.jpg)

endif

显然上述方法无效..但这只是解释了我的建议.

欢呼声

Gaz

这取决于您尚未提供的大量信息.

This will depend on alot of information you have not provided.

您的信息流的来源是什么?

What is the source of your stream?

您的信息流的结构是什么?

What is the structure of your stream?

您需要的数据长度是否总是相同?

will the data at your offest always have the same length?

您的流文本中的数据是否最有害?

Is the data at the offest in your stream text?

该文本的编码是什么? Ascii? Unicode吗?

What is the encoding of that text? Ascii? Unicode?


这篇关于如果找到特定文本,则将特定图像加载到图片框中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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