This document is archived and information here might be outdated.  Recommended version.


IMapControl3.KeyIntercept Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControl3 Interface > IMapControl3.KeyIntercept Property
ArcGIS Developer Help

IMapControl3.KeyIntercept Property

A property that specifies interception of key strokes that are normally handled by the container. When intercepted the OnKeyDown and OnKeyUp events will be called. This value can be a combined bit mask of esriKeyIntercept enum values.

[Visual Basic .NET]
Public Property KeyIntercept As Integer
[C#]
public int KeyIntercept {get; set;}
[C++]
HRESULT get_KeyIntercept(
void
);
[C++]
HRESULT put_KeyIntercept(
);

Product Availability

Available with ArcGIS Engine.

Description

Returns or sets keys on the keyboard that will be intercepted by the MapControl, triggering the OnKeyDown and OnKeyUp events when pressed. These keys are often hidden from the MapControl by the development environment container. By default the KeyIntercept is set to esriKeyInterceptNone.

Many development environment containers use the up, down, left and right arrow keys to change control focus on a form. These keys can also be useful for navigating around the display. To intercept the arrow keys and the Tab key combine the enum values using a logical OR operation (esriKeyInterceptArrowKeys OR esriKeyInterceptTabKey, which is 1 OR 4 = 5).

Errors Returned

1029 800a0405: Version incompatibility when loading from a stream, the stream version is ahead of the current software version
1054 800a041e: The specified filename is invalid

See Also

IMapControl3 Interface