All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Ajax简单应用,检测用户名是否存在_[AJAX教程]
在不装AD的情况下管理SPS的访问群体_.net资料_编程技术
SQL,server,2005安装问题汇总_mssql学习_编程技术
组件编程之TypeConverterAttribute_[Asp.Net教程]
visual c++中弹出式菜单
ASP.NET保持用户状态的九种选择_[Asp.Net教程]
Asp.Net对Xml文件的操作_[Asp.Net教程]
让Apache支持ASP.NET-Apache,ASP.NET_.net资料_编程技术
HTML语言剖析(十二)多媒体标记_[Html教程]
使用javascript检测浏览器的相关特性_JavaScript技术_编程技术
Reading number is top 10 pictures
大四女生借债隆胸成功
Other people's teacher VS my teacher
Born After 90 Beijing sports university campus flower photos5
红楼梦金陵十二钗(2)
2012 national geographic daily picture9
新版武松打虎
浴室里的美女
看到这名字我也是醉了。。。。。。
陪睡门马睿菈自曝写真 称首拍大尺度照片3
XuYing poker perspective garment debut
Download software ranking
Unix video tutorial7
Twenty piece of palm leaf
asp.netWeb服务器高级编程
终极变速大师Speeder3.26
jBuilder2006
Unix video tutorial13
都市狐狸姑娘传
Tram sex maniac 2 (H) rar bag17
linux安装大全
尖东毒玫瑰B
qq published in(发表于) 2014/7/11 9:29:38 Edit(编辑)
在C#中使用帮助文件

在C#中使用帮助文件

在C#中使用帮助文件

在C#中使用帮助文件

示例

在C#中使用帮助文件

本示例中,当程序运行时,单击【启动帮助文件】按钮,调用帮助文件。

程序主要代码如下:

private void button1_Click(object sender, EventArgs e)

{

string reportPath = Application.StartupPath.Substring(0, Application.StartupPath.Substring(0,

Application.StartupPath.LastIndexOf("")).LastIndexOf(""));

reportPath += @"sl25MRMONEYHELP.HLP";

System.Diagnostics.Process.Start(reportPath);

}

完整程序代码如下:

★ ★★★★frmHelpWorkshop.cs窗体代码文件完整程序代码★★★★★

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace _5_01

{

public partial class frmHelpWorkshop : Form

{

public frmHelpWorkshop()

{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)

{

string reportPath = Application.StartupPath.Substring(0, Application.StartupPath.Substring(0,

Application.StartupPath.LastIndexOf("")).LastIndexOf(""));

reportPath += @"MRMONEYHELP.HLP";

System.Diagnostics.Process.Start(reportPath);

}

private void frmHelpWorkshop_Load(object sender, EventArgs e)

{

}

}

}

★ ★★★★frmHelpWorkshop.Designer.cs窗体设计文件完整程序代码★★★★★

namespace _5_01

{

partial class frmHelpWorkshop

{

///



/// 必需的设计器变量。

///


private System.ComponentModel.IContainer components = null;

///

/// 清理所有正在使用的资源。

///


/// 如果应释放托管资源,为 true;否则为 false。

protected override void Dispose(bool disposing)

{

if (disposing && (components != null))

{

components.Dispose();

}

base.Dispose(disposing);

}

#region Windows 窗体设计器生成的代码

///

/// 设计器支持所需的方法 - 不要

/// 使用代码编辑器修改此方法的内容。

///


private void InitializeComponent()

{

this.helpProvider1 = new System.Windows.Forms.HelpProvider();

this.button1 = new System.Windows.Forms.Button();

this.SuspendLayout();

//

// helpProvider1

//

this.helpProvider1.HelpNamespace = "D:张宏宇C#开发mingrisoftmingrisoftsl251MRMONEYHELP.HLP";

//

// button1

//

this.button1.Location = new System.Drawing.Point(103, 37);

this.button1.Name = "button1";

this.button1.Size = new System.Drawing.Size(87, 23);

this.button1.TabIndex = 0;

this.button1.Text = "启动帮助文件";

this.button1.UseVisualStyleBackColor = true;

this.button1.Click += new System.EventHandler(this.button1_Click);

//

// frmHelpWorkshop

//

this.ClientSize = new System.Drawing.Size(292, 126);

this.Controls.Add(this.button1);

this.Name = "frmHelpWorkshop";

this.Load += new System.EventHandler(this.frmHelpWorkshop_Load);

this.ResumeLayout(false);

}

#endregion

private System.Windows.Forms.HelpProvider helpProvider1;

private System.Windows.Forms.Button button1;

}

}




添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.