Code:
/ 4.0 / 4.0 / 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. /// // 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
- processwaithandle.cs
- UITypeEditor.cs
- IOException.cs
- SystemIPAddressInformation.cs
- DoubleCollection.cs
- objectquery_tresulttype.cs
- FixUpCollection.cs
- TypeConverterAttribute.cs
- StyleHelper.cs
- CreateUserWizard.cs
- FreezableOperations.cs
- MoveSizeWinEventHandler.cs
- GradientSpreadMethodValidation.cs
- MetabaseSettingsIis7.cs
- Track.cs
- SqlTriggerContext.cs
- TypeAccessException.cs
- FormsAuthenticationUserCollection.cs
- TableParaClient.cs
- DialogResultConverter.cs
- WebConfigurationHost.cs
- ScriptRef.cs
- ErrorReporting.cs
- MasterPage.cs
- ItemsPanelTemplate.cs
- EmissiveMaterial.cs
- DataContractSerializer.cs
- ImageResources.Designer.cs
- ItemTypeToolStripMenuItem.cs
- Stacktrace.cs
- NotFiniteNumberException.cs
- ReferentialConstraint.cs
- OrderedHashRepartitionStream.cs
- IBuiltInEvidence.cs
- DropTarget.cs
- ToolStripDesignerAvailabilityAttribute.cs
- WebPartCatalogCloseVerb.cs
- XmlArrayAttribute.cs
- WebServiceReceiveDesigner.cs
- PageParser.cs
- ReferenceSchema.cs
- EventSourceCreationData.cs
- RootBrowserWindow.cs
- XmlSchemaGroup.cs
- DetailsView.cs
- AuthorizationRuleCollection.cs
- NegationPusher.cs
- TextUtf8RawTextWriter.cs
- SafeNativeMethodsMilCoreApi.cs
- Internal.cs
- TextBoxBase.cs
- Statements.cs
- DataGridCell.cs
- BinaryMessageEncodingElement.cs
- OneOfScalarConst.cs
- ProviderConnectionPointCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- EditorServiceContext.cs
- InstanceNormalEvent.cs
- WebControl.cs
- SqlDuplicator.cs
- DrawingAttributeSerializer.cs
- DataControlImageButton.cs
- Profiler.cs
- DataGridViewRowCancelEventArgs.cs
- Substitution.cs
- Accessible.cs
- QueryReaderSettings.cs
- UnionCodeGroup.cs
- DoubleConverter.cs
- OdbcReferenceCollection.cs
- XmlSchemaInferenceException.cs
- ListViewAutomationPeer.cs
- ObjectComplexPropertyMapping.cs
- UriWriter.cs
- BlobPersonalizationState.cs
- OleDbDataAdapter.cs
- NotFiniteNumberException.cs
- PersonalizationDictionary.cs
- AsyncPostBackTrigger.cs
- ParameterReplacerVisitor.cs
- Polygon.cs
- RegionInfo.cs
- DefaultValueConverter.cs
- ChtmlTextWriter.cs
- DataBindingList.cs
- CacheSection.cs
- FirstMatchCodeGroup.cs
- ConfigurationValues.cs
- RecordConverter.cs
- Formatter.cs
- ServiceContractDetailViewControl.cs
- HttpListenerContext.cs
- SchemaObjectWriter.cs
- DispatcherExceptionEventArgs.cs
- TextSelectionHighlightLayer.cs
- PropertyEmitter.cs
- TextClipboardData.cs
- PopupRoot.cs
- XMLUtil.cs