默认图像查看器VB.NET [英] Default Image Viewer VB.NET

查看:79
本文介绍了默认图像查看器VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Windows窗体项目,并创建了具有不同功能的图像查看器.现在,我想知道如何使我的程序成为默认的Windows图像查看器.我试图右键单击一个图像文件,然后选择打开方式",选择了程序,但是它不起作用.它只是打开了我的程序.

I have created a windows forms project and I created an image viewer with different functions. Now I want to know how to make my program the default windows image viewer. I tried to right click an image file, then I selected Open with, I selected my program but it didn''t work. It just opened my program.

推荐答案

您可能没有在应用程序中包含用于解析命令行参数的代码. Environment.GetCommandLineArgs [
You problably didn''t include code in your app to parse command line arguments. Environment.GetCommandLineArgs[^]


这篇关于默认图像查看器VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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