Code:
/ DotNET / DotNET / 8.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
- OleDbConnectionFactory.cs
- RijndaelManaged.cs
- MetadataItem.cs
- RectIndependentAnimationStorage.cs
- LoadedOrUnloadedOperation.cs
- SqlConnectionPoolProviderInfo.cs
- HeaderedContentControl.cs
- AccessorTable.cs
- FixedTextContainer.cs
- DeferredSelectedIndexReference.cs
- FormViewActionList.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlDataSourceNodeDescriptor.cs
- HostExecutionContextManager.cs
- precedingsibling.cs
- LocalValueEnumerator.cs
- GlobalEventManager.cs
- Pkcs7Recipient.cs
- RuleSet.cs
- GridViewCellAutomationPeer.cs
- DataSourceCache.cs
- MediaPlayer.cs
- FormattedTextSymbols.cs
- CancellationHandlerDesigner.cs
- CapabilitiesRule.cs
- ServiceProviders.cs
- BamlResourceSerializer.cs
- StylusPlugInCollection.cs
- ToolStripPanelCell.cs
- WindowProviderWrapper.cs
- PopupEventArgs.cs
- PrintControllerWithStatusDialog.cs
- ImportCatalogPart.cs
- _HTTPDateParse.cs
- ApplicationProxyInternal.cs
- XmlIlGenerator.cs
- NavigatorOutput.cs
- WCFModelStrings.Designer.cs
- CharUnicodeInfo.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DotExpr.cs
- ToolboxControl.cs
- DrawingAttributesDefaultValueFactory.cs
- SiteMapNodeItem.cs
- DataColumnMappingCollection.cs
- SerialStream.cs
- MailAddressCollection.cs
- AssociationTypeEmitter.cs
- WebPartEditorOkVerb.cs
- DefaultValueConverter.cs
- DBSqlParserColumn.cs
- MarshalByValueComponent.cs
- ActiveDocumentEvent.cs
- QueryValue.cs
- DrawingAttributeSerializer.cs
- DeclarativeCatalogPartDesigner.cs
- CodeMemberField.cs
- SqlEnums.cs
- CompositeFontFamily.cs
- DefaultAuthorizationContext.cs
- SplineKeyFrames.cs
- QilDataSource.cs
- AccessViolationException.cs
- Privilege.cs
- MenuItemStyleCollection.cs
- IResourceProvider.cs
- Config.cs
- ParameterCollection.cs
- SectionInput.cs
- ArrayListCollectionBase.cs
- QueryContinueDragEventArgs.cs
- UInt32Converter.cs
- WindowsStartMenu.cs
- Recipient.cs
- XmlCustomFormatter.cs
- ProcessInfo.cs
- IUnknownConstantAttribute.cs
- ExtendedProtectionPolicy.cs
- StorageMappingItemCollection.cs
- COAUTHIDENTITY.cs
- Model3DGroup.cs
- FormsAuthenticationModule.cs
- WebPartsSection.cs
- ProxyGenerationError.cs
- ArrayWithOffset.cs
- WsatTransactionFormatter.cs
- TypeLoadException.cs
- ScrollableControl.cs
- HttpCacheParams.cs
- BufferedGraphics.cs
- InkPresenterAutomationPeer.cs
- StringResourceManager.cs
- HtmlTableCellCollection.cs
- Tracking.cs
- VisualStyleElement.cs
- Base64Decoder.cs
- TimelineGroup.cs
- ViewStateModeByIdAttribute.cs
- WebHttpBindingElement.cs
- QueryableDataSourceEditData.cs