Windows forms help button

Help Class

Definition

Encapsulates the HTML Help 1.0 engine.

Examples

The following code example displays a form that contains three buttons that can be used to interact with the Mspaint.chm Help file. The Show Help Index button displays the Index tab for the Help file. The Show Help button displays content in the Help file based on the value that is selected in the Help Navigator list. The Show Keyword button displays content in the Help file based on the keyword that is specified in the Keyword text box.

For example, to show the Ovals Help page by the index value, select the HelpNavigator.KeywordIndex value in the Help Navigator drop-down list, type ovals in the Parameter text box, and then click the Show Help button. To show the «To paint with a brush» Help topic by the keyword, type mspaint.chm::/paint_brush.htm in the Keyword text box, and then click the Show Keyword button.

The example uses the ShowHelp method to display the different Help tabs and Help topics, and the ShowHelpIndex method to display the Help index.

Remarks

You cannot create a new instance of the Help class. To provide Help for an application, call the static ShowHelp and ShowHelpIndex methods.

You can use Help to show compiled Help files (.chm) or HTML files in the HTML Help format. Compiled Help files provide a table of contents, an index, search capability, and keyword links in pages. Shortcuts work only in compiled Help files.

You can generate HTML Help 1.x files by using HTML Help Workshop. For more information about HTML Help, see «HTML Help Workshop» and other HTML Help topics at Microsoft HTML Help.

Methods

Displays the contents of the Help file at the specified URL.

Displays the contents of the Help file found at the specified URL for a specific topic.

Displays the contents of the Help file located at the URL supplied by the user.

Displays the contents of the Help file found at the specified URL for a specific keyword.

Displays the index of the specified Help file.

Form. Help Button Свойство

Определение

Возвращает или задает значение, указывающее, отображать ли кнопку «Справка» в заголовке формы. Gets or sets a value indicating whether a Help button should be displayed in the caption box of the form.

Значение свойства

Значение true для отображения кнопки «Справка» в заголовке формы; в противном случае — значение false . true to display a Help button in the form’s caption bar; otherwise, false . Значение по умолчанию — false . The default is false .

Примеры

В следующем примере создается новый экземпляр класса Form и вызывается ShowDialog метод для вывода формы в виде диалогового окна. The following example creates a new instance of a Form and calls the ShowDialog method to display the form as a dialog box. В примере задаются FormBorderStyle AcceptButton свойства,, CancelButton ,, MinimizeBox MaximizeBox и, StartPosition чтобы изменить внешний вид и функциональность формы на диалоговое окно. The example sets the FormBorderStyle, AcceptButton, CancelButton, MinimizeBox, MaximizeBox, and StartPosition properties to change the appearance and functionality of the form to a dialog box. В примере также используется Add метод Controls коллекции формы для добавления двух Button элементов управления. The example also uses the Add method of the form’s Controls collection to add two Button controls. В примере свойство используется HelpButton для вывода кнопки справки в строке заголовка диалогового окна. The example uses the HelpButton property to display a Help button in the caption bar of the dialog box.

Читайте также:  Код активации avast cleanup windows

Комментарии

Если для этого свойства задано значение true , в строке заголовка слева от кнопки Закрыть появляется маленькая кнопка с вопросительным знаком. When this property is set to true , a small button with a question mark appears in the caption bar to the left of the Close button. С помощью этой кнопки можно отобразить справку для приложения. You can use this button to display help for your application. Можно создать обработчик событий для HelpRequested события, чтобы отображать справочные сведения для пользователя при нажатии кнопки «Справка» формы. You can create an event handler for the HelpRequested event to display Help information to the user when the Help button of the form is clicked.

Чтобы отобразить кнопку справки, значение ControlBox Свойства формы должно быть true , значение по умолчанию. To display a Help button, the value of the form’s ControlBox property must be true , its default value. ControlBoxСвойство определяет, содержит ли правый верхний угол строки заголовка элементы управления, такие как кнопка развертывания, Кнопка сворачивания, кнопка справки и кнопка Закрыть. The ControlBox property determines whether the upper-right corner of the caption bar contains controls such as a maximize button, a minimize button, a help button, and a close button. Кроме того, необходимо также присвоить FormBorderStyle свойству формы значение FormBorderStyle.FixedSingle , FormBorderStyle.Sizable , FormBorderStyle.Fixed3D или FormBorderStyle.FixedDialog . In addition, you must also set the form’s FormBorderStyle property to FormBorderStyle.FixedSingle, FormBorderStyle.Sizable, FormBorderStyle.Fixed3D, or FormBorderStyle.FixedDialog.

Значение HelpButton свойства игнорируется, если отображаются кнопки развернуть или сворачивания . The value of the HelpButton property is ignored if the Maximize or Minimize buttons are shown.

How to: Display pop-up Help

One way to display Help on Windows Forms is through the Help button, located on the right side of the title bar, accessible through the HelpButton property. This type of Help display is well-suited for use with dialog boxes. Dialog boxes shown modally (with the ShowDialog method) have trouble bringing up external Help systems, because modal dialog boxes need to be closed before focus can shift to another window. Additionally, using the Help button requires that there is no Minimize button or Maximize button shown in the title bar. This is a standard dialog-box convention, whereas forms usually have Minimize and Maximize buttons.

You can also use the HelpProvider component to link controls to files in a Help system, even if you have implemented pop-up Help. For more information, see Providing Help in a Windows Application.

Читайте также:  Parallels mac os free

Display pop-up Help

In Visual Studio, drag a HelpProvider component from the Toolbox to your form.

It will sit in the tray at the bottom of the Windows Forms Designer.

In the Properties window, set the HelpButton property to true . This will display a button with a question mark in it on the right side of the title bar of the form.

In order for the HelpButton to display, the form’s MinimizeBox and MaximizeBox properties must be set to false , the ControlBox property set to true , and the FormBorderStyle property to one of the following values: FixedSingle, Fixed3D, FixedDialog or Sizable.

Select the control for which you want to show help on your form and set the Help string in the Properties window. This is the string of text that will be displayed in a window similar to a ToolTip.

Press F5.

Press the Help button on the title bar and click the control on which you set the Help string.

Пошаговое руководство. Отображение всплывающей справки How to: Display pop-up Help

Одним из способов отобразить справку по Windows Forms является кнопка « Справка », расположенная в правой части строки заголовка и доступная через HelpButton свойство. One way to display Help on Windows Forms is through the Help button, located on the right side of the title bar, accessible through the HelpButton property. Этот способ вывода справки хорошо подходит при работе с диалоговыми окнами. This type of Help display is well-suited for use with dialog boxes. Модальные диалоговые окна (с методом ShowDialog) затрудняют работу внешних справочных систем, так как их нужно закрывать, чтобы перенести фокус на другое окно. Dialog boxes shown modally (with the ShowDialog method) have trouble bringing up external Help systems, because modal dialog boxes need to be closed before focus can shift to another window. Кроме того, при помощи кнопки « Справка » необходимо, чтобы в заголовке окна не отображалась кнопка сворачивания или кнопка развернуть . Additionally, using the Help button requires that there is no Minimize button or Maximize button shown in the title bar. Это стандартное соглашение о диалоговых окнах, в то время как формы обычно имеют кнопки сворачивания и развернуть . This is a standard dialog-box convention, whereas forms usually have Minimize and Maximize buttons.

Кроме того, компонент можно использовать HelpProvider для связывания элементов управления с файлами в справочной системе, даже если вы реализовали всплывающую справку. You can also use the HelpProvider component to link controls to files in a Help system, even if you have implemented pop-up Help. Дополнительные сведения см. в разделе Предоставление справки в приложении Windows. For more information, see Providing Help in a Windows Application.

Отображение всплывающей справки Display pop-up Help

В Visual Studio перетащите компонент HelpProvider из области элементов в форму. In Visual Studio, drag a HelpProvider component from the Toolbox to your form.

Читайте также:  Карантин антивируса где находится windows 10

Он разместится в нижней части конструктора Windows Forms. It will sit in the tray at the bottom of the Windows Forms Designer.

В окне «Свойства» присвойте свойству HelpButton значение true . In the Properties window, set the HelpButton property to true . При этом в правой части строки заголовка формы появится кнопка с вопросительным знаком. This will display a button with a question mark in it on the right side of the title bar of the form.

Для отображения HelpButton свойствам MinimizeBox и MaximizeBox формы нужно присвоить значение false , свойству ControlBox — значение true , а свойству FormBorderStyle — одно из следующих значений: FixedSingle, Fixed3D, FixedDialog или Sizable. In order for the HelpButton to display, the form’s MinimizeBox and MaximizeBox properties must be set to false , the ControlBox property set to true , and the FormBorderStyle property to one of the following values: FixedSingle, Fixed3D, FixedDialog or Sizable.

Выберите элемент управления, для которого нужно отображать справку в форме, и укажите строку справки в окне «Свойства». Select the control for which you want to show help on your form and set the Help string in the Properties window. Это строка текста, которая будет отображаться в окне, похожем на подсказку. This is the string of text that will be displayed in a window similar to a ToolTip.

Нажмите клавишу F5. Press F5.

Нажмите кнопку « Справка » в заголовке окна и щелкните элемент управления, на котором вы настроили строку справки. Press the Help button on the title bar and click the control on which you set the Help string.

Свойство HelpButton у формы

Подскажите, пожалуйста.
В свойствах формы устанавливаю HelpButton=true;
Но на форме кнопка не появляется. Подскажите, в чем может быть проблема?

Свойство формы Location, или как рассчитать начальную позицию формы
Вообще, есть 2 формы, одна посередине другая рядом с ней стоит с права (или в правом верхнем углу).

Какое свойство (событие) формы отвечает за «отображение» формы на экране?
На открытие базы поставлено открытие формы «Главная». На открытие формы «Главная» поставлен макрос.

Свойство формы
Люди, какое свойство формы позволяет сделать так, чтобы при запуске проекта нельзя было менять его.

Свойство формы
Есть ли такое свойство формы чтобы открывалось на всех компьютерах приложение так как оно было.

Тематические курсы и обучение профессиям онлайн
Профессия‌ С#-разработчик‌ (Skillbox)
Архитектор ПО (Skillbox)
Профессия Тестировщик (Skillbox)

Решение

Заказываю контрольные, курсовые, дипломные и любые другие студенческие работы здесь или здесь.

Переопределить свойство формы
Переопределить свойство формы richTextBox.Lines. Пишу контрол. Где и как это оформлять?

Свойство ModalResult формы
http://www.delphi-manual.ru/lesson8.php написано: Значение ModalResult выбранной кнопки.

какое свойство формы
доброго времени суток. извиняюсь конечно за дурацкий вопрос, но всё же: есть 2 формы:form1 и.

Параметры формы. Свойство
Курс Чистова. Документ Расходная: в момент выбора данных о товаре показывать остаток товара. .

Свойство формы Text
Наверно немного глупый вопрос, но все же. Мне нужно изменить заголовок окна, свойство формы Text.

Свойство формы components
на форме компоненты RadioButton1 и кнопка Button1 RadioButton1.Checked:= true; — это установлено.

Оцените статью