创建预览按钮 [英] creating a preview button

查看:82
本文介绍了创建预览按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在vb.net中我创建了一个应用程序,我们可以在其中浏览文件,它的位置将在文本框中,我现在需要创建一个预览按钮,用户可以通过该按钮查看所选文件

任何建议.......

in vb.net i have created an application in which we can browse a file and its location will be in text box now i need to create a preview button by which user can view the selected file
any suggestion .......

推荐答案

我想你想用进程打开文件预览?





I think you want to open the file for preview using process?


Process.Start("notepad.exe", @"F:\yourfile.txt");





这将在NotePad中打开yourfile.txt。您可以将其编辑为要打开以供预览的任何应用程序。



This will open yourfile.txt in NotePad. You can edit that to whatever application you want to open for preview.


这篇关于创建预览按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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