单击按钮时如何显示文本文件 [英] How to display the text file while clicking the button

查看:28
本文介绍了单击按钮时如何显示文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在单击命令按钮时显示文件(*.txt)

How to display the file(*.txt) while clicking the command button

如何在点击按钮时显示文件内容

How to display the content of the file while clicking the button

数据存储在文本文件中,例如 1.txt当我单击命令按钮时,将打开 1.txt 文件并显示 1.txt 数据

Data's are stored in the text file, ex 1.txt when am clicking the command buttion, 1.txt file will open and 1.txt data's should display

推荐答案

要仅使用当前默认文件处理程序打开文件,请尝试使用 ShellExecute API 函数.

To just open a file using the current default file handler try using the ShellExecute API function.

这是一个示例.

这篇关于单击按钮时如何显示文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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