Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / HScrollBar.cs / 1 / HScrollBar.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.Security.Permissions; using System.Windows.Forms; using System.Drawing; using Microsoft.Win32; using System.Runtime.InteropServices; ////// /// [ComVisible(true), ClassInterface(ClassInterfaceType.AutoDispatch), SRDescription(SR.DescriptionHScrollBar) ] public class HScrollBar : ScrollBar { ////// Represents /// a standard Windows horizontal scroll bar. /// ////// /// /// protected override CreateParams CreateParams { [SecurityPermission(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)] get { CreateParams cp = base.CreateParams; cp.Style |= NativeMethods.SBS_HORZ; return cp; } } ////// Returns the parameters needed to create the handle. Inheriting classes /// can override this to provide extra functionality. They should not, /// however, forget to call base.getCreateParams() first to get the struct /// filled up with the basic info. /// ////// /// Deriving classes can override this to configure a default size for their control. /// This is more efficient than setting the size in the control's constructor. /// protected override Size DefaultSize { get { return new Size(80, SystemInformation.HorizontalScrollBarHeight); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DBSqlParserTable.cs
- PersonalizationState.cs
- BinHexEncoder.cs
- CodeVariableReferenceExpression.cs
- UnsafeNativeMethods.cs
- ModelItemDictionary.cs
- VisualTransition.cs
- Helper.cs
- PackageDigitalSignature.cs
- MemoryMappedViewStream.cs
- AttributeCollection.cs
- SiteMapPath.cs
- DataSourceHelper.cs
- CultureInfoConverter.cs
- GZipDecoder.cs
- WebServiceClientProxyGenerator.cs
- SessionStateItemCollection.cs
- ToolStripPanelRow.cs
- IndexerNameAttribute.cs
- CheckBoxPopupAdapter.cs
- CompositeCollectionView.cs
- Timer.cs
- AuthStoreRoleProvider.cs
- DockAndAnchorLayout.cs
- MbpInfo.cs
- DataControlFieldCell.cs
- ArithmeticException.cs
- UIAgentAsyncBeginRequest.cs
- StrokeRenderer.cs
- BinaryMethodMessage.cs
- SiteMapProvider.cs
- ImageListStreamer.cs
- EnumerableValidator.cs
- SessionPageStatePersister.cs
- ArrayElementGridEntry.cs
- Stack.cs
- Stack.cs
- RangeValuePatternIdentifiers.cs
- Parser.cs
- XmlNodeReader.cs
- PackagePart.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ServiceOperation.cs
- WsdlBuildProvider.cs
- UdpTransportBindingElement.cs
- UserPreferenceChangingEventArgs.cs
- ByeOperation11AsyncResult.cs
- HttpChannelHelper.cs
- FormViewModeEventArgs.cs
- ToolboxItem.cs
- BamlMapTable.cs
- SiblingIterators.cs
- MessageEventSubscriptionService.cs
- DodSequenceMerge.cs
- NeedSkipTokenVisitor.cs
- GridViewCancelEditEventArgs.cs
- MulticastOption.cs
- RowUpdatingEventArgs.cs
- AssociatedControlConverter.cs
- CodeTryCatchFinallyStatement.cs
- OptimizerPatterns.cs
- TextRangeAdaptor.cs
- RenderingBiasValidation.cs
- StorageBasedPackageProperties.cs
- QueryStatement.cs
- GatewayDefinition.cs
- BrowserInteropHelper.cs
- ExpressionBindingCollection.cs
- DataColumnMappingCollection.cs
- Exceptions.cs
- RecordManager.cs
- DependencyPropertyChangedEventArgs.cs
- IndexerReference.cs
- CompModSwitches.cs
- TextCompositionEventArgs.cs
- unsafenativemethodstextservices.cs
- EmptyEnumerator.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- PropertyGeneratedEventArgs.cs
- SystemIPGlobalStatistics.cs
- MD5.cs
- RuleInfoComparer.cs
- HashHelpers.cs
- ObjectViewListener.cs
- ReversePositionQuery.cs
- X509ImageLogo.cs
- CssTextWriter.cs
- JpegBitmapDecoder.cs
- _AcceptOverlappedAsyncResult.cs
- XPathException.cs
- StaticDataManager.cs
- Int32RectConverter.cs
- EventRouteFactory.cs
- XmlUtf8RawTextWriter.cs
- ObjectDataSourceMethodEventArgs.cs
- altserialization.cs
- XmlFileEditor.cs
- RoleGroupCollection.cs
- QuaternionAnimation.cs
- TextServicesManager.cs