在VS2010设计点击连接到Word文档
1、首先,新建一个项目。

3、选择工具箱下的公共控件-->Button,拉入窗体。

5、在事件中加入代码:System.Diagnostics.Process p = new System.Dia爿讥旌护gnostics.Process(); p.StartInfo.UseShellExecute = true; p.StartInfo.FileName = @"d:\1.doc";//@后是Word文档的路径 p.Start();

7、也可以在下拉菜单中实现点击连接到Word文档,选择菜单和工具栏下的MenuStrip,拖入窗体中。

9、双击查看帮助文档。在事件中加入代码:System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.UseShellExecute = true; p.StartInfo.FileName = @"d:\1.doc";//@后是Word文档的路径 p.Start();
