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
- XmlTypeAttribute.cs
- SiteMapSection.cs
- EventEntry.cs
- SoapAttributeOverrides.cs
- ListViewUpdateEventArgs.cs
- DataSourceHelper.cs
- CachedTypeface.cs
- DataControlField.cs
- TypeForwardedToAttribute.cs
- ExternalCalls.cs
- SmiMetaData.cs
- GlobalizationSection.cs
- AnonymousIdentificationSection.cs
- EventRoute.cs
- ConnectivityStatus.cs
- MonikerProxyAttribute.cs
- _IPv6Address.cs
- XPathSelfQuery.cs
- FormClosingEvent.cs
- VisualStyleElement.cs
- CommandCollectionEditor.cs
- CriticalExceptions.cs
- Operators.cs
- ImageBrush.cs
- HttpRuntimeSection.cs
- GetPageNumberCompletedEventArgs.cs
- ReadingWritingEntityEventArgs.cs
- IDQuery.cs
- IProvider.cs
- MethodCallTranslator.cs
- FunctionUpdateCommand.cs
- Transform3DGroup.cs
- ServerValidateEventArgs.cs
- GeneralTransform3DGroup.cs
- TableLayoutColumnStyleCollection.cs
- BuildManager.cs
- ConfigXmlComment.cs
- RepeatBehavior.cs
- MaskDesignerDialog.cs
- ForeignKeyFactory.cs
- EntityConnection.cs
- HttpListenerContext.cs
- RowVisual.cs
- StructuralObject.cs
- ConfigurationSectionGroup.cs
- ThousandthOfEmRealDoubles.cs
- DeclarativeCatalogPart.cs
- DocumentGridContextMenu.cs
- LabelAutomationPeer.cs
- ConfigurationLoaderException.cs
- SQLInt32.cs
- SubMenuStyleCollection.cs
- AnnotationHighlightLayer.cs
- HitTestWithPointDrawingContextWalker.cs
- DBDataPermission.cs
- BindingListCollectionView.cs
- OleDbRowUpdatingEvent.cs
- UnauthorizedWebPart.cs
- PropertyDescriptorCollection.cs
- ItemChangedEventArgs.cs
- LifetimeMonitor.cs
- ObjectListCommand.cs
- SqlCaseSimplifier.cs
- XmlSchemaNotation.cs
- URLEditor.cs
- EventData.cs
- RequestContext.cs
- Serializer.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- invalidudtexception.cs
- WorkflowDesignerMessageFilter.cs
- SqlLiftWhereClauses.cs
- GlobalEventManager.cs
- SrgsDocumentParser.cs
- MaterializeFromAtom.cs
- Message.cs
- OdbcErrorCollection.cs
- XmlnsCache.cs
- MapPathBasedVirtualPathProvider.cs
- BuildProvider.cs
- PackageProperties.cs
- DocumentViewerBaseAutomationPeer.cs
- AmbiguousMatchException.cs
- StringDictionary.cs
- TableRow.cs
- ComponentCollection.cs
- OleDbPermission.cs
- DataControlFieldHeaderCell.cs
- ProbeDuplex11AsyncResult.cs
- IChannel.cs
- EventMap.cs
- JoinGraph.cs
- GraphicsContext.cs
- Encoder.cs
- QueryCacheKey.cs
- HelpEvent.cs
- TextServicesLoader.cs
- RecognizeCompletedEventArgs.cs
- GenericEnumerator.cs
- PingOptions.cs