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
- PeerApplicationLaunchInfo.cs
- TabItemAutomationPeer.cs
- StringComparer.cs
- BaseComponentEditor.cs
- Int32KeyFrameCollection.cs
- UIAgentCrashedException.cs
- LayoutEngine.cs
- PtsHost.cs
- SqlConnectionPoolProviderInfo.cs
- ContainerSelectorBehavior.cs
- SafeEventHandle.cs
- ButtonRenderer.cs
- ClientFactory.cs
- GAC.cs
- InkCanvasAutomationPeer.cs
- IgnoreFileBuildProvider.cs
- HtmlInputReset.cs
- ListMarkerSourceInfo.cs
- SqlVisitor.cs
- SettingsProperty.cs
- PixelFormatConverter.cs
- AppDomainAttributes.cs
- DataControlFieldHeaderCell.cs
- PeerNearMe.cs
- BehaviorEditorPart.cs
- DataGridViewAdvancedBorderStyle.cs
- SoapElementAttribute.cs
- DecoderExceptionFallback.cs
- DetailsViewUpdatedEventArgs.cs
- ToolStripContainerDesigner.cs
- SuppressMessageAttribute.cs
- InstanceLockLostException.cs
- CleanUpVirtualizedItemEventArgs.cs
- TaiwanLunisolarCalendar.cs
- ChtmlTextWriter.cs
- Button.cs
- PolicyChain.cs
- CommandConverter.cs
- CopyOfAction.cs
- KoreanCalendar.cs
- TextRangeEditLists.cs
- ImageMapEventArgs.cs
- BitArray.cs
- FieldInfo.cs
- PolygonHotSpot.cs
- IteratorFilter.cs
- UidManager.cs
- ThicknessConverter.cs
- FormViewRow.cs
- ManagementClass.cs
- BackgroundFormatInfo.cs
- AttachmentService.cs
- ZipFileInfo.cs
- TypedTableBaseExtensions.cs
- TextEffect.cs
- DataObject.cs
- CfgArc.cs
- Comparer.cs
- WindowPatternIdentifiers.cs
- DesignSurface.cs
- MetadataItem_Static.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- XomlCompilerError.cs
- DetailsViewPagerRow.cs
- SynchronizationContext.cs
- Vector3DCollectionConverter.cs
- RequestCache.cs
- FileUtil.cs
- UInt64Converter.cs
- MimeBasePart.cs
- sortedlist.cs
- SQLInt64Storage.cs
- DataSourceSelectArguments.cs
- DefaultTextStore.cs
- BamlBinaryReader.cs
- VersionPair.cs
- ReverseInheritProperty.cs
- BatchStream.cs
- IgnoreFlushAndCloseStream.cs
- SeverityFilter.cs
- MsdtcClusterUtils.cs
- BitmapSource.cs
- DbUpdateCommandTree.cs
- SplitterPanel.cs
- ZoneButton.cs
- DataSourceXmlSubItemAttribute.cs
- MemberInfoSerializationHolder.cs
- LogEntrySerializer.cs
- ConfigXmlCDataSection.cs
- TextEditorTables.cs
- MenuItemStyle.cs
- SystemWebCachingSectionGroup.cs
- HyperLinkField.cs
- Model3D.cs
- FileDialog.cs
- KeyConverter.cs
- DesignerOptions.cs
- NodeLabelEditEvent.cs
- XamlSerializer.cs
- Logging.cs