如何在VB 6.0中还原上载的图像列表控件的图像 [英] How to restore the images uploaded for imagelist control in VB 6.0

查看:105
本文介绍了如何在VB 6.0中还原上载的图像列表控件的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VB 6.0应用程序,该应用程序在imagelist控件中包含一些图像.我想知道这些图像在系统中的存储位置.(因为我想在其他应用程序中使用这些图像,而我在系统中没有单独的图像) 因此,唯一的方法是从Visusal basic 6.0项目中获取图像. 我们是否有类似于.Net的资源文件夹?

I have a VB 6.0 application which contains some images inside a imagelist control. I want to know where these images get stored in the system.( because I want to use these images in another application and I dont have the images seperately in the system) So, the only way is to take the images from Visusal basic 6.0 project. Do we have anything like resource folder similar to .Net?

请尽快告诉我.

谢谢 鲁帕

推荐答案

  • 启动一个空项目.
  • 将引用(Ctrl + T)添加到Microsoft Windows Common Controls 5.0 or 6.0
  • 将图像列表控件复制/粘贴到Form1
  • 将图像列表控件重命名为ImageList1
    • Start an empty project.
    • Add reference (Ctrl+T) to Microsoft Windows Common Controls 5.0 or 6.0
    • Copy/Paste image list control to Form1
    • Rename image list control to ImageList1
    • 使用此代码

      Dim lIdx As Long
      
      For lIdx = 1 To ImageList1.ListImages.Count
          SavePicture ImageList1.ListImages(lIdx).Picture, "C:\TEMP\img" & lIdx & ".bmp"
      Next
      

      这篇关于如何在VB 6.0中还原上载的图像列表控件的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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