将PDF文档链接到vb.net中的ToolStripMenuItem [英] Link a PDF document to a ToolStripMenuItem in vb.net
本文介绍了将PDF文档链接到vb.net中的ToolStripMenuItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我想将PDF格式的用户手册链接到ToolStripMenuItem.谁能指出我正确的方向?
在此先感谢您.
Hi
I want to link a user manual in PDF format to a ToolStripMenuItem. Can anyone point me in the right direction?
Thanks in advance.
推荐答案
在表单设计器中,双击要在单击pdf文件时打开它的toolstripmenuitem工具.
在代码视图中,键入以下命令
Shell("explorer.exe " + """" + file + """")
用pdf文件的路径替换文件,例如,变量或"c:\ help.pdf"
不要忘记.exe后的空格
您还可以添加my.application.info.directory ...等.
in the form designer, double click the toolstripmenuitem that you want to open the pdf file when it''s clicked
in the code view, type this command
Shell("explorer.exe " + """" + file + """")
Replace file with the pdf file''s path, for example, a variable or "c:\help.pdf"
Do not forget the space after .exe
you can also add my.application.info.directory... etc.
这篇关于将PDF文档链接到vb.net中的ToolStripMenuItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文