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

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

语法Syntax

expressionexpression. HelpContextId

expression:表示 TextBox 对象的变量。expression A variable that represents a TextBox object.

备注Remarks

注释 如果您输入的帮助文件主题的上下文 ID 为正数,帮助主题将显示"full"帮助主题窗口中。Note If you enter the context ID of the Help file topic as a positive number, the help topic will display in a "full" help topic window. 如果在上下文 ID 前加上一个负号 ("-"),则帮助主题将显示在"弹出式"窗口中。If you add a minus sign ("-") in front of the context ID, the help topic will be displayed in a "pop-up" window. 必须注意,在 Microsoft Help Workshop 中进行编写时,上下文 ID 不一定是负数。It is important to note 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 you create with Microsoft Access.

在窗体视图中按 F1 键时,Microsoft Access 将调用的 Microsoft 帮助研讨会或 Microsoft HTML 帮助研讨会的应用程序、 加载指定的窗体或报表的HelpFile属性设置的自定义帮助文件和显示的帮助主题HelpContextID属性设置指定。When you press the F1 key in Form view, Microsoft 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.

如果控件的HelpContextID属性设置为 0 (默认值),Microsoft Access 将使用窗体的HelpContextIDHelpFile属性来确定要显示的帮助主题。If a control's HelpContextID property setting is 0 (the default), Microsoft Access uses the form's HelpContextID and HelpFile properties to identify the Help topic to display. 如果在窗体视图或如果窗体和控件的 帮助上下文 Id 属性设置为 0 以外的其他视图中按 f1 键,将显示 Microsoft 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, a Microsoft Access Help topic is displayed.

另请参阅See also

TextBox 对象TextBox Object