Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / KeyPressEvent.cs / 1 / 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
- ToolStripProgressBar.cs
- ExpressionNormalizer.cs
- ImplicitInputBrush.cs
- LocationSectionRecord.cs
- BindingSource.cs
- DashStyle.cs
- HttpCachePolicyWrapper.cs
- TemplateComponentConnector.cs
- ProxySimple.cs
- MobileTemplatedControlDesigner.cs
- SpStreamWrapper.cs
- PolicyUtility.cs
- PageAdapter.cs
- regiisutil.cs
- Documentation.cs
- ErrorWebPart.cs
- OptimalTextSource.cs
- TableLayoutSettingsTypeConverter.cs
- ListDictionary.cs
- DataViewSetting.cs
- Italic.cs
- SafeEventLogWriteHandle.cs
- XmlSchemaValidationException.cs
- SafeUserTokenHandle.cs
- OLEDB_Enum.cs
- PopupRootAutomationPeer.cs
- FastPropertyAccessor.cs
- ISAPIRuntime.cs
- ListItemCollection.cs
- Enum.cs
- Mutex.cs
- SimpleExpression.cs
- SoapExtensionTypeElementCollection.cs
- ToolStripArrowRenderEventArgs.cs
- UrlRoutingModule.cs
- DesignOnlyAttribute.cs
- BaseInfoTable.cs
- CompositionTarget.cs
- XmlDomTextWriter.cs
- CrossContextChannel.cs
- DoubleCollectionConverter.cs
- MatrixIndependentAnimationStorage.cs
- LogWriteRestartAreaState.cs
- GcHandle.cs
- ControlValuePropertyAttribute.cs
- StoreItemCollection.Loader.cs
- XmlSchemas.cs
- RecordBuilder.cs
- EntityViewGenerationAttribute.cs
- SByteConverter.cs
- RtfControlWordInfo.cs
- SortKey.cs
- GrammarBuilderWildcard.cs
- AutomationPeer.cs
- COM2Enum.cs
- PropertyPushdownHelper.cs
- WebPartDisplayModeCancelEventArgs.cs
- Freezable.cs
- AnnotationObservableCollection.cs
- ViewGenResults.cs
- DataGridViewSelectedColumnCollection.cs
- RawMouseInputReport.cs
- DynamicResourceExtension.cs
- CodeDomConfigurationHandler.cs
- sqlnorm.cs
- Internal.cs
- DataRow.cs
- PageThemeBuildProvider.cs
- WindowsPen.cs
- ExpandSegmentCollection.cs
- XmlSchemaRedefine.cs
- WebBrowserNavigatingEventHandler.cs
- SqlDataSourceSelectingEventArgs.cs
- UpdateException.cs
- AbsoluteQuery.cs
- MemberMemberBinding.cs
- XmlSchemaImport.cs
- ContainerUtilities.cs
- COAUTHINFO.cs
- PropertyMetadata.cs
- DataBoundControlActionList.cs
- TextRenderer.cs
- CompileLiteralTextParser.cs
- Inflater.cs
- RangeValueProviderWrapper.cs
- SimpleBitVector32.cs
- TransportBindingElementImporter.cs
- QueryOutputWriter.cs
- VisualState.cs
- DefaultWorkflowSchedulerService.cs
- TypefaceMap.cs
- SafeSecurityHelper.cs
- ACE.cs
- PermissionListSet.cs
- WriteLineDesigner.xaml.cs
- GlobalAllocSafeHandle.cs
- RangeBase.cs
- HtmlTextArea.cs
- Tablet.cs
- CellTreeNode.cs