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
- ProvidersHelper.cs
- EntityDataSourceContainerNameConverter.cs
- HoistedLocals.cs
- ArrayConverter.cs
- CloudCollection.cs
- DeferredReference.cs
- PropertyGridCommands.cs
- ResourceExpressionBuilder.cs
- SchemaInfo.cs
- LinkButton.cs
- XPathDescendantIterator.cs
- KeyNotFoundException.cs
- ConfigurationSectionGroup.cs
- SHA256.cs
- MissingMemberException.cs
- SqlErrorCollection.cs
- SecurityState.cs
- HttpProxyCredentialType.cs
- BuildProvider.cs
- XmlNamespaceManager.cs
- EncryptedXml.cs
- SecurityElement.cs
- RowCache.cs
- RuleConditionDialog.cs
- OdbcHandle.cs
- TriggerAction.cs
- HttpInputStream.cs
- MDIControlStrip.cs
- WebPartEditorOkVerb.cs
- XsltContext.cs
- RtfControls.cs
- RangeValuePattern.cs
- SqlDataSourceCommandEventArgs.cs
- QueueProcessor.cs
- WebServiceData.cs
- StsCommunicationException.cs
- XmlCountingReader.cs
- MarshalByRefObject.cs
- WindowsListViewSubItem.cs
- TrackingAnnotationCollection.cs
- WebRequestModulesSection.cs
- MediaScriptCommandRoutedEventArgs.cs
- ToolStripPanelCell.cs
- TreeNodeSelectionProcessor.cs
- PeerEndPoint.cs
- UnitControl.cs
- Clause.cs
- DbProviderFactory.cs
- BufferedGraphicsContext.cs
- MessageProperties.cs
- ScrollItemPatternIdentifiers.cs
- ADRoleFactoryConfiguration.cs
- UIElementIsland.cs
- Deserializer.cs
- DateRangeEvent.cs
- FixedPageStructure.cs
- StatusBarItem.cs
- RC2CryptoServiceProvider.cs
- FormsAuthenticationEventArgs.cs
- ObjectStateFormatter.cs
- NumberFormatter.cs
- EmptyStringExpandableObjectConverter.cs
- TextPenaltyModule.cs
- WindowsFont.cs
- path.cs
- ActivityTypeCodeDomSerializer.cs
- FigureHelper.cs
- RemotingConfigParser.cs
- WebPartCatalogCloseVerb.cs
- SqlDataSourceSelectingEventArgs.cs
- CompositeDesignerAccessibleObject.cs
- ParseHttpDate.cs
- TextBox.cs
- RowTypePropertyElement.cs
- ServiceThrottle.cs
- UserPreferenceChangedEventArgs.cs
- FormViewUpdateEventArgs.cs
- DesignerVerb.cs
- OracleBFile.cs
- TransactionInformation.cs
- ActivityExecutorSurrogate.cs
- TextTreeNode.cs
- RewritingProcessor.cs
- CustomWebEventKey.cs
- ListViewTableRow.cs
- ReferencedCollectionType.cs
- StreamSecurityUpgradeInitiatorBase.cs
- ISAPIApplicationHost.cs
- OleDbEnumerator.cs
- AssemblyUtil.cs
- AlphaSortedEnumConverter.cs
- RpcResponse.cs
- SqlDataSourceSelectingEventArgs.cs
- DataControlButton.cs
- WhitespaceRule.cs
- DataSet.cs
- WebServiceHost.cs
- XmlSerializerVersionAttribute.cs
- ResourceAssociationTypeEnd.cs
- _NativeSSPI.cs