Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / NumericUpDownAcceleration.cs / 1 / NumericUpDownAcceleration.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; ////// Comprises the information specifying how acceleration should be performed /// on a Windows up-down control when the up/down button is pressed for certain /// amount of time. /// public class NumericUpDownAcceleration { private Int32 seconds; // Ideally we would use UInt32 but it is not CLS-compliant. private Decimal increment; // Ideally we would use UInt32 but NumericUpDown uses Decimal values. public NumericUpDownAcceleration(Int32 seconds, Decimal increment) { if (seconds < 0) { throw new ArgumentOutOfRangeException("seconds", seconds, SR.GetString(SR.NumericUpDownLessThanZeroError)); } if (increment < Decimal.Zero) { throw new ArgumentOutOfRangeException("increment", increment, SR.GetString(SR.NumericUpDownLessThanZeroError)); } this.seconds = seconds; this.increment = increment; } ////// Determines the amount of time for the UpDown control to wait to set the increment /// step when holding the up/down button. /// public Int32 Seconds { get { return this.seconds; } set { if (value < 0) { throw new ArgumentOutOfRangeException("seconds", value, SR.GetString(SR.NumericUpDownLessThanZeroError)); } this.seconds = value; } } ////// Determines the amount to increment by. /// public Decimal Increment { get { return this.increment; } set { if (value < Decimal.Zero) { throw new ArgumentOutOfRangeException("increment", value, SR.GetString(SR.NumericUpDownLessThanZeroError)); } this.increment = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MessageQueueCriteria.cs
- FormsAuthenticationModule.cs
- XamlSerializerUtil.cs
- PathTooLongException.cs
- DesignerResources.cs
- MessageHeaderDescription.cs
- FillBehavior.cs
- QuaternionConverter.cs
- NavigationHelper.cs
- QilTargetType.cs
- BrowserDefinitionCollection.cs
- OleDbEnumerator.cs
- DeviceFiltersSection.cs
- Token.cs
- AssemblyName.cs
- RenameRuleObjectDialog.Designer.cs
- XmlBindingWorker.cs
- EnglishPluralizationService.cs
- InfiniteIntConverter.cs
- LinqDataSourceContextData.cs
- _NegotiateClient.cs
- QilSortKey.cs
- DataColumn.cs
- KnownColorTable.cs
- GZipStream.cs
- OracleFactory.cs
- NotSupportedException.cs
- TextDecoration.cs
- mactripleDES.cs
- ObjectDataSourceChooseTypePanel.cs
- DbConnectionStringCommon.cs
- DocumentGridPage.cs
- InputScopeNameConverter.cs
- HitTestResult.cs
- XsdDataContractImporter.cs
- DataGridViewColumnHeaderCell.cs
- IsolatedStoragePermission.cs
- XmlDeclaration.cs
- SqlPersonalizationProvider.cs
- PermissionRequestEvidence.cs
- _HeaderInfo.cs
- OwnerDrawPropertyBag.cs
- TextServicesHost.cs
- CodeConstructor.cs
- IndexedSelectQueryOperator.cs
- TextFormatterImp.cs
- mediapermission.cs
- NativeMethods.cs
- UserControlBuildProvider.cs
- ClientOptions.cs
- UpdateTranslator.cs
- IisTraceWebEventProvider.cs
- ListViewItemCollectionEditor.cs
- CustomAttributeSerializer.cs
- ToolStripContainerDesigner.cs
- SoapIgnoreAttribute.cs
- BitmapMetadataEnumerator.cs
- Margins.cs
- Char.cs
- StreamInfo.cs
- TextEffect.cs
- RequestCacheManager.cs
- ToolStripMenuItemDesigner.cs
- ContextStaticAttribute.cs
- DuplexSecurityProtocolFactory.cs
- Misc.cs
- OptimalBreakSession.cs
- BulletChrome.cs
- FileBasedResourceGroveler.cs
- QueryCacheManager.cs
- MetadataSerializer.cs
- FieldNameLookup.cs
- SendingRequestEventArgs.cs
- XmlAttributeCache.cs
- DecoderFallbackWithFailureFlag.cs
- XPathDocumentNavigator.cs
- GraphicsPathIterator.cs
- ExpressionBinding.cs
- InputMethodStateChangeEventArgs.cs
- HostAdapter.cs
- SemaphoreFullException.cs
- TagMapCollection.cs
- ControlAdapter.cs
- RetrieveVirtualItemEventArgs.cs
- relpropertyhelper.cs
- Region.cs
- HttpSocketManager.cs
- ResourceDictionary.cs
- BCLDebug.cs
- ThreadAttributes.cs
- OptimizedTemplateContent.cs
- HtmlContainerControl.cs
- ChannelAcceptor.cs
- BitmapMetadataBlob.cs
- RemotingAttributes.cs
- InputProcessorProfiles.cs
- ItemMap.cs
- EventLogTraceListener.cs
- FrameworkRichTextComposition.cs
- DescendentsWalker.cs