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
- ApplicationContext.cs
- EncryptedHeader.cs
- SqlBulkCopyColumnMapping.cs
- DateTimeConstantAttribute.cs
- peersecurityelement.cs
- X509CertificateChain.cs
- UserPreferenceChangedEventArgs.cs
- Site.cs
- UseManagedPresentationBindingElement.cs
- ObjectParameter.cs
- SoapWriter.cs
- hresults.cs
- CompModSwitches.cs
- StrokeNode.cs
- BitmapEffect.cs
- ObjectDataSource.cs
- OracleDataReader.cs
- SqlMethods.cs
- WebScriptServiceHost.cs
- DataRelationPropertyDescriptor.cs
- NamespaceQuery.cs
- ColumnBinding.cs
- EncodingTable.cs
- AutomationTextAttribute.cs
- LeafCellTreeNode.cs
- EntityCommandCompilationException.cs
- BindingExpression.cs
- IndexedWhereQueryOperator.cs
- AddInBase.cs
- MemoryStream.cs
- CalendarDataBindingHandler.cs
- ListItem.cs
- SqlServices.cs
- HybridDictionary.cs
- BitmapSourceSafeMILHandle.cs
- HostedNamedPipeTransportManager.cs
- CmsInterop.cs
- SinglePageViewer.cs
- LinqDataView.cs
- Timer.cs
- TreeSet.cs
- SimpleWebHandlerParser.cs
- InputMethodStateTypeInfo.cs
- IntegerValidatorAttribute.cs
- PathParser.cs
- ReadContentAsBinaryHelper.cs
- InheritanceContextChangedEventManager.cs
- BitmapEffectDrawingContextState.cs
- ZoomPercentageConverter.cs
- TextUtf8RawTextWriter.cs
- AppDomainProtocolHandler.cs
- SmiSettersStream.cs
- DecoratedNameAttribute.cs
- RelationshipConstraintValidator.cs
- WebBrowser.cs
- AttachedPropertyInfo.cs
- FlowLayoutPanel.cs
- CodeEventReferenceExpression.cs
- TextEmbeddedObject.cs
- HebrewNumber.cs
- TextContainer.cs
- HttpCookie.cs
- EngineSite.cs
- TdsParserSafeHandles.cs
- DecimalStorage.cs
- SqlCacheDependencyDatabase.cs
- BinaryParser.cs
- ServiceDescriptionContext.cs
- XmlSchemaNotation.cs
- Int32RectConverter.cs
- RelationshipSet.cs
- SystemMulticastIPAddressInformation.cs
- CellTreeNodeVisitors.cs
- CodeNamespaceImport.cs
- XmlStreamStore.cs
- TypeDelegator.cs
- ListMarkerSourceInfo.cs
- NavigationCommands.cs
- ClientScriptManagerWrapper.cs
- BufferAllocator.cs
- XhtmlStyleClass.cs
- ConvertersCollection.cs
- WizardPanel.cs
- EntityContainerEntitySetDefiningQuery.cs
- MimeBasePart.cs
- BaseDataBoundControl.cs
- BrowserDefinitionCollection.cs
- mda.cs
- SafeNativeMethods.cs
- WebPartChrome.cs
- DefaultAuthorizationContext.cs
- CreateUserErrorEventArgs.cs
- GenericEnumConverter.cs
- SetterBaseCollection.cs
- Number.cs
- DesignDataSource.cs
- HtmlAnchor.cs
- DataGridAddNewRow.cs
- SafeCoTaskMem.cs
- PropertyKey.cs