Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / KeyPressEvent.cs / 1305376 / KeyPressEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System.Diagnostics; using System; using System.Drawing; using System.ComponentModel; using Microsoft.Win32; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class KeyPressEventArgs : EventArgs { ////// Provides data for the ////// event. /// /// /// Contains the character of the current KeyPress event. /// private char keyChar; ////// /// Determines if this event has been handled by a handler. If handled, the /// key event will not be sent along to Windows. If not handled, the event /// will be sent to Windows for default processing. /// private bool handled; ////// /// public KeyPressEventArgs(char keyChar) { this.keyChar = keyChar; } ////// Initializes a new /// instance of the ////// class. /// /// /// public char KeyChar { get { return keyChar; } set { keyChar = value; } } ////// Gets the character corresponding to the key /// pressed. /// ////// /// public bool Handled { get { return handled; } set { handled = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets a value indicating whether the ////// event was handled. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeAccessPermission.cs
- SystemFonts.cs
- ToolbarAUtomationPeer.cs
- FileDialogCustomPlace.cs
- XmlValidatingReaderImpl.cs
- WinInet.cs
- QueryOutputWriter.cs
- ObjectDataSourceMethodEventArgs.cs
- MarginCollapsingState.cs
- objectresult_tresulttype.cs
- ScriptRegistrationManager.cs
- FolderLevelBuildProvider.cs
- TreeNodeBindingCollection.cs
- ADRoleFactoryConfiguration.cs
- OracleException.cs
- VariableAction.cs
- TextPointer.cs
- ChangePasswordAutoFormat.cs
- TemplateLookupAction.cs
- DataBoundControlDesigner.cs
- BitmapEffectInputData.cs
- MimeObjectFactory.cs
- FileAccessException.cs
- StateWorkerRequest.cs
- MetabaseServerConfig.cs
- ComboBox.cs
- GeometryCombineModeValidation.cs
- DesignerAdapterUtil.cs
- EndpointNotFoundException.cs
- LocalizedNameDescriptionPair.cs
- CodeArrayCreateExpression.cs
- TraceXPathNavigator.cs
- SimplePropertyEntry.cs
- EastAsianLunisolarCalendar.cs
- DocumentViewer.cs
- Timer.cs
- CryptoKeySecurity.cs
- ReturnValue.cs
- RegexCapture.cs
- TypeUsageBuilder.cs
- MouseBinding.cs
- CommandValueSerializer.cs
- ModelEditingScope.cs
- XmlJsonWriter.cs
- ExecutionEngineException.cs
- And.cs
- HitTestWithGeometryDrawingContextWalker.cs
- EnumValidator.cs
- Style.cs
- GridSplitterAutomationPeer.cs
- DataGridViewHeaderCell.cs
- SqlCommandBuilder.cs
- WeakReferenceKey.cs
- UpdateCommand.cs
- OutputScope.cs
- safex509handles.cs
- Utils.cs
- RadialGradientBrush.cs
- ScriptingRoleServiceSection.cs
- _LoggingObject.cs
- JsonQueryStringConverter.cs
- RequestBringIntoViewEventArgs.cs
- FileDialog_Vista.cs
- DataGridView.cs
- EntityConnectionStringBuilder.cs
- InheritanceContextChangedEventManager.cs
- UnsafeNativeMethods.cs
- PrivilegeNotHeldException.cs
- unsafenativemethodstextservices.cs
- PixelFormats.cs
- safesecurityhelperavalon.cs
- XpsSerializerFactory.cs
- AdjustableArrowCap.cs
- Models.cs
- ChangeTracker.cs
- Underline.cs
- PageStatePersister.cs
- CreateCardRequest.cs
- HebrewNumber.cs
- AxHost.cs
- RemotingException.cs
- ZipIOLocalFileHeader.cs
- ListSortDescriptionCollection.cs
- Point3DAnimation.cs
- CrossSiteScriptingValidation.cs
- BitmapEffectDrawingContextState.cs
- StylusEventArgs.cs
- _BufferOffsetSize.cs
- ArglessEventHandlerProxy.cs
- ErrorFormatterPage.cs
- RotateTransform.cs
- PolicyException.cs
- TrackingExtract.cs
- PopupEventArgs.cs
- InternalBase.cs
- DBDataPermissionAttribute.cs
- IntMinMaxAggregationOperator.cs
- BeginStoryboard.cs
- GridViewRowPresenter.cs
- OracleParameter.cs