TextBox.HelpContextId 属性 (Access)TextBox.HelpContextId property (Access)

帮助上下文id 属性指定由**帮助** 文件属性设置所指定的自定义帮助文件中的主题的上下文 ID。The HelpContextID property specifies the context ID of a topic in the custom Help file specified by the HelpFile property setting. 读/写 LongRead/write Long.

语法Syntax

表达式帮助上下文关于expression.HelpContextId

_表达式_一个代表**TextBox** 对象的变量。expression A variable that represents a TextBox object.

说明Remarks

备注

如果将 "帮助" 文件主题的上下文 ID 输入为正数, 则帮助主题将显示在 "完整" 帮助主题窗口中。If you enter the context ID of the Help file topic as a positive number, the Help topic displays in a "full" Help topic window. 如果在上下文 ID 前添加减号 ("-"), 则帮助主题将显示在 "弹出式" 窗口中。If you add a minus sign ("-") in front of the context ID, the Help topic displays in a "pop-up" window. 请务必注意, 在 Microsoft 帮助研讨会中创作时, 上下文 ID 不一定是负数。It is important to note that the context ID does not have to have a negative number when authored in Microsoft Help Workshop. 若要将该属性设置为在弹出式窗口中显示主题,一定要加上负号。You must add the minus sign when setting the property to make the topic display in the pop-up window.

可以为使用 Microsoft Access 创建的文档窗体、报表或应用程序创建自定义帮助文件。You can create a custom Help file to document forms, reports, or applications that you create with Microsoft Access.

当您在 "窗体" 视图中按 F1 键时, Access 将调用 microsoft 帮助研讨会或 Microsoft HTML 帮助研讨会应用程序, 加载由帮助程序属性设置为窗体或报表指定的自定义帮助文件, 并显示指定的帮助主题根据帮助属性设置。When you press the F1 key in Form view, Access calls the Microsoft Help Workshop or Microsoft HTML Help Workshop application, loads the custom Help file specified by the HelpFile property setting for the form or report, and displays the Help topic specified by the HelpContextID property setting.

如果控件的值id属性设置为 0 (默认值), Access 将使用窗体的帮助上下文帮助属性来确定要显示的帮助主题。If a control's HelpContextID property setting is 0 (the default), Access uses the form's HelpContextID and HelpFile properties to identify the Help topic to display. 如果在窗体视图之外的视图中按 F1, 或者窗体和控件的帮助上下文 id属性设置为 0, 则将显示 Access 帮助主题。If you press F1 in a view other than Form view, or if the HelpContextID property setting for both the form and the control is 0, an Access Help topic is displayed.

支持和反馈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.