Occurs when AccessibleObject is providing help to accessibility applications.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Public Event QueryAccessibilityHelp As QueryAccessibilityHelpEventHandlerpublic event QueryAccessibilityHelpEventHandler QueryAccessibilityHelppublic:
event QueryAccessibilityHelpEventHandler^ QueryAccessibilityHelp {
void add (QueryAccessibilityHelpEventHandler^ value);
void remove (QueryAccessibilityHelpEventHandler^ value);
}member QueryAccessibilityHelp : IEvent<QueryAccessibilityHelpEventHandler,
QueryAccessibilityHelpEventArgs>
You should use the HelpProvider class to enable users to invoke help on your accessible object by pressing the F1 key. Using the HelpProvider provides you with complete information in the QueryAccessibilityHelpEventArgs. For more information about handling events, see Consuming Events.
The following code example demonstrates the creation of an accessibility-aware chart control, using the AccessibleObject and Control
This code excerpt demonstrates handling the QueryAccessibilityHelp event. See the AccessibleObject class overview for the complete code example.
' Handle the QueryAccessibilityHelp event.
Private Sub ChartControl_QueryAccessibilityHelp(sender As Object, _
e As System.Windows.Forms.QueryAccessibilityHelpEventArgs) Handles MyBase.QueryAccessibilityHelp
e.HelpString = "Displays chart data"
End Sub
// Handles the QueryAccessibilityHelp event.
private void ChartControl_QueryAccessibilityHelp(object sender,
System.Windows.Forms.QueryAccessibilityHelpEventArgs e)
{
e.HelpString = "Displays chart data";
}
// Handles the QueryAccessibilityHelp event.
void ChartControl_QueryAccessibilityHelp( Object^ /*sender*/, System::Windows::Forms::QueryAccessibilityHelpEventArgs^ e )
{
e->HelpString = "Displays chart data";
}
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.