帮助上下文属性HelpContextID property

HelpContextID 属性将自定义 Microsoft Windows 帮助文件中的一个特定主题与一个特定控件关联。The HelpContextID property associates a specific topic in a custom Microsoft Windows Help file with a specific control.

语法Syntax

对象帮助上下文关于[= Long ]object.HelpContextID [= Long ]

HelpContextID 属性语法包含以下部分:The HelpContextID property syntax has these parts:

PartPart 说明Description
objectobject 必需。Required. 一个有效的对象。A valid object.
LongLong 可选。Optional. 正整数指定与对象关联的帮助文件中的主题的上下文 IDA positive integer specifies the context ID of a topic in the Help file associated with the object. 零指示没有与对象关联的帮助主题(默认)。Zero indicates no Help topic is associated with the object (default). 指定的帮助文件中必须包含一个有效的上下文 ID。Must be a valid context ID in the specified Help file.

备注Remarks

在运行窗体时,由 HelpContextID 属性标识的主题对用户可用。The topic identified by the HelpContextID property is available to users when a form is running. 若要显示此主题,用户必须选择控件或将焦点设置为控件,然后按 F1。To display the topic, the user must either select the control or set focus to the control, and then press F1.

帮助上下文 id属性是指自定义帮助文件中创建的用于描述窗体或应用程序的主题。The HelpContextID property refers to a topic in a custom Help file that you have created to describe your form or application. 在 Visual Basic 中,自定义帮助文件是项目的属性。In Visual Basic, the custom Help file is a property of the project.

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.