Back to Devexpress

ChartDesigner.HelpRequested Event

windowsforms-devexpress-dot-xtracharts-dot-designer-dot-chartdesigner-e271418a.md

latest2.3 KB
Original Source

ChartDesigner.HelpRequested Event

Occurs when a user requests help for the Chart Designer.

Namespace : DevExpress.XtraCharts.Designer

Assembly : DevExpress.XtraCharts.v25.2.Wizard.dll

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
public event ChartDesignerHelpRequestedEventHandler HelpRequested
vb
Public Event HelpRequested As ChartDesignerHelpRequestedEventHandler

Event Data

The HelpRequested event's data class is EventArgs.

Remarks

The user should press F1 to request help.

Example

The following code invokes a custom help dialog for the Chart Designer when a user requests help:

csharp
private void OnSimpleButtonClick(object sender, EventArgs e) {
    ChartDesigner designer = new ChartDesigner(chartControl1);
    designer.HelpRequested += OnDesignerHelpRequested;
    designer.ShowDialog(false);
}

private void OnDesignerHelpRequested(object sender, EventArgs e) {
    // Create a help form that is the System.Windows.Forms.Form class descendant.
    using (HelpForm helpForm = new HelpForm()) {
        helpForm.ShowDialog();
    }
}
vb
Private Sub OnSimpleButtonClick(ByVal sender As Object, ByVal e As EventArgs)
    Dim designer As ChartDesigner = New ChartDesigner(chartControl1)
    designer.HelpRequested += AddressOf OnDesignerHelpRequested
    designer.ShowDialog(False)
End Sub

Private Sub OnDesignerHelpRequested(ByVal sender As Object, ByVal e As EventArgs)
    ' Create a help form that is the System.Windows.Forms.Form class descendant.
    Using helpForm As HelpForm = New HelpForm()
        helpForm.ShowDialog()
    End Using
End Sub

See Also

ChartDesigner Class

ChartDesigner Members

DevExpress.XtraCharts.Designer Namespace