مشاركة عبر


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 QueryAccessibilityHelp As QueryAccessibilityHelpEventHandler
'الاستخدام
Dim instance As Shape
Dim handler As QueryAccessibilityHelpEventHandler

AddHandler instance.QueryAccessibilityHelp, handler
[BrowsableAttribute(true)]
public event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp
[BrowsableAttribute(true)]
public:
 event QueryAccessibilityHelpEventHandler^ QueryAccessibilityHelp {
    void add (QueryAccessibilityHelpEventHandler^ value);
    void remove (QueryAccessibilityHelpEventHandler^ value);
}
[<BrowsableAttribute(true)>]
member QueryAccessibilityHelp : IEvent<QueryAccessibilityHelpEventHandler,
    QueryAccessibilityHelpEventArgs>
JScript does not support events.

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 Consuming 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 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
private void ovalShape1_QueryAccessibilityHelp(object sender, 
    System.Windows.Forms.QueryAccessibilityHelpEventArgs e)
{
    e.HelpString = "Displays an oval representing a network node.";
}

.NET Framework Security

See Also

Reference

Shape Class

Shape Members

Microsoft.VisualBasic.PowerPacks Namespace

Other Resources

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)