We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Shape.QueryAccessibilityHelp Event

Occurs when an AccessibleObject is providing Help to accessibility applications.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

public event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp

You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key. The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.

For more information about how to handle events, see Consuming Events.

The following example shows how to respond to the QueryAccessibilityHelp event in an event handler. This example requires that you have an OvalShape control named OvalShape1 on a form.

private void ovalShape1_QueryAccessibilityHelp(object sender, 
    System.Windows.Forms.QueryAccessibilityHelpEventArgs e)
    e.HelpString = "Displays an oval representing a network node.";