private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
String ^strPath =Application::StartupPath->Substring(0,Application::StartupPath->LastIndexOf("\\"));
strPath += "\\helpPage.htm";
//设置helpProvider1控件的pNamespace属性,设置帮助文件的路径
helpProvider1->HelpNamespace = strPath;
//设置SetShowHelp方法指定是否显示指定控件的帮助信息
helpProvider1->SetShowHelp(this,true);
}