在vb项目中加载应用程序 [英] loading an application in vb project

查看:96
本文介绍了在vb项目中加载应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好?我是这个网站的新手,但是我认为这是您可以遵循的正确链接.....目前正在学校的学习系统上工作,我想通过单击按钮来加载或运行ms应用程序(例如powerpoint)在vb.net项目中,在此字段上是空白的...任何人都可以帮助我如何执行此操作.

Hello ? am new to this site but i think this is the right link to follow ...... am currently working on a school rec mgt system and i wanted to load or run a ms application such as power point through a click of a button in vb.net project and am blank on this field .....can any one kindly assist me on how to do this. thanx in advance.

推荐答案

如果要打开应用程序或PowerPoint幻灯片,只需在按钮
的click事件上使用给定的代码即可 在代码中将System.Diagnostics命名空间导入为
If you want to open an application or powerpoint slideshow,You can simply use given code on click event of button
Import System.Diagnostics namespace in your code as
Imports System.Diagnostics


然后在按钮的点击事件上编写给定的代码


and then write given code on click event of button

Dim myProcess As New Process()
myProcess.StartInfo.FileName = "Location of PowerPoint file"
           myProcess.StartInfo.CreateNoWindow = True
           myProcess.Start()



如何通过使用Visual Basic .NET中的自动化来运行Office宏[


and
How to run Office macros by using Automation from Visual Basic .NET[^]


要打开PowerPoint(例如),请导入System.Diagnostics
然后调用Process.Start,这将创建一个新的记事本实例.

To open PowerPoint (for eg) import System.Diagnostics
then call Process.Start this will create a new instance of notepad.

Dim p as New Process()
p.StartInfo = new ProcessStartInfo(<path of="" powerpoint="" executable="">,<file to="" open="">;)
p.Start()
</file></path>


这篇关于在vb项目中加载应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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