如何加载图片Cuctom文件扩展名vb6 [英] how to load a picture cuctom file extension vb6

查看:134
本文介绍了如何加载图片Cuctom文件扩展名vb6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
如何使用cuctom文件扩展名vb6加载图片.例如"Picture.bmp",此文件显示隐藏文件扩展名"Picture.lel".
感谢

Hallo,
How to load a picture With cuctom File Extension vb6. Such as "Picture.bmp" this file displaying cuctom File extension "Picture.lel".
Thanks

推荐答案

将属性CancelError设置为true,以便在用户取消选择时检测(通过引发的错误).使用.Filter属性指定您将在应用程序中允许的文件格式.

Set Property CancelError to true in order to detect (throught a raised error) when the user cancelled the selection. Use the .Filter property to specify wich file formast you''ll allow in your application.

.Filter = "All files/*.*/My Custom Format/*.lel"



请注意,值之间用竖线分隔,因此,奇数值为过滤器标题,非奇数值为过滤器本身(在"MyCustom Format"上方的示例中,将链接扩展名为"* .lel"的文件.)



notice that values are separated by pipes, so the odd values are the filter caption and the not odd values are the filter itself (in the expale above "MyCustom Format" will be linked to files with extension "*.lel".)


这篇关于如何加载图片Cuctom文件扩展名vb6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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