Share via


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)

Syntax

[BrowsableAttribute(true)]
public event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp
public:
[BrowsableAttribute(true)]
event QueryAccessibilityHelpEventHandler^ QueryAccessibilityHelp {
    void add(QueryAccessibilityHelpEventHandler^ value);
    void remove(QueryAccessibilityHelpEventHandler^ value);
}
[<BrowsableAttribute(true)>]
member QueryAccessibilityHelp : IEvent<QueryAccessibilityHelpEventHandler,
    QueryAccessibilityHelpEventArgs>
<BrowsableAttribute(True)>
Public Event QueryAccessibilityHelp As QueryAccessibilityHelpEventHandler

Remarks

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 Handling and Raising Events.

Examples

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.";
}
Private Sub OvalShape1_QueryAccessibilityHelp(
    ByVal sender As Object, 
    ByVal e As System.Windows.Forms.QueryAccessibilityHelpEventArgs
  ) Handles OvalShape1.QueryAccessibilityHelp

    e.HelpString = "Displays an oval representing a network node."
End Sub

See Also

Shape Class
Microsoft.VisualBasic.PowerPacks Namespace
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)
Introduction to the Line and Shape Controls (Visual Studio)

Return to top