Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RotateTransform3D.cs
- TransformerTypeCollection.cs
- CompositeActivityTypeDescriptor.cs
- AnnouncementSendsAsyncResult.cs
- Lookup.cs
- LineInfo.cs
- SocketPermission.cs
- PassportAuthenticationEventArgs.cs
- KeyConstraint.cs
- StatusStrip.cs
- BehaviorDragDropEventArgs.cs
- AppDomainShutdownMonitor.cs
- Fonts.cs
- MinMaxParagraphWidth.cs
- WindowsSpinner.cs
- IndexedEnumerable.cs
- Vector3D.cs
- ExtensionQuery.cs
- Control.cs
- PointCollectionConverter.cs
- DataGridViewTextBoxColumn.cs
- AllMembershipCondition.cs
- CryptoApi.cs
- RuntimeWrappedException.cs
- PrimitiveSchema.cs
- FormsAuthenticationUserCollection.cs
- DesignerWidgets.cs
- Cell.cs
- Brushes.cs
- ErrorWrapper.cs
- X509CertificateRecipientClientCredential.cs
- ScriptReference.cs
- ColumnReorderedEventArgs.cs
- SrgsRuleRef.cs
- ErrorInfoXmlDocument.cs
- EntitySetBaseCollection.cs
- RootBuilder.cs
- ObjectKeyFrameCollection.cs
- DataFormat.cs
- HashAlgorithm.cs
- DrawToolTipEventArgs.cs
- TdsParserSessionPool.cs
- RecordManager.cs
- DataGridViewLinkColumn.cs
- LineUtil.cs
- ObjectConverter.cs
- SafeRegistryKey.cs
- OleDbInfoMessageEvent.cs
- IncrementalReadDecoders.cs
- Point.cs
- OutputCacheProfileCollection.cs
- WebControlParameterProxy.cs
- PostBackOptions.cs
- ComplexTypeEmitter.cs
- DataPagerFieldItem.cs
- PasswordBoxAutomationPeer.cs
- ExtensibleClassFactory.cs
- Rotation3DAnimationUsingKeyFrames.cs
- NativeObjectSecurity.cs
- PriorityQueue.cs
- BookmarkScopeInfo.cs
- RoleManagerModule.cs
- WebFormsRootDesigner.cs
- MimeTypePropertyAttribute.cs
- UnhandledExceptionEventArgs.cs
- CodeTypeDelegate.cs
- MaskedTextProvider.cs
- NameTable.cs
- OracleBinary.cs
- XmlDataSourceNodeDescriptor.cs
- DateTimeOffsetStorage.cs
- AssemblyInfo.cs
- RemotingServices.cs
- ColumnClickEvent.cs
- DecimalConstantAttribute.cs
- XmlNamedNodeMap.cs
- EndEvent.cs
- SelectionEditor.cs
- DefaultDialogButtons.cs
- WindowsHyperlink.cs
- SmiEventSink.cs
- SubMenuStyleCollection.cs
- InlineCollection.cs
- Propagator.ExtentPlaceholderCreator.cs
- ApplicationSettingsBase.cs
- TaskFormBase.cs
- GraphicsContext.cs
- SmtpNtlmAuthenticationModule.cs
- SetIterators.cs
- NetworkInterface.cs
- EncodingNLS.cs
- MouseCaptureWithinProperty.cs
- TimeManager.cs
- DrawListViewSubItemEventArgs.cs
- ModelService.cs
- SchemaTableOptionalColumn.cs
- SupportsEventValidationAttribute.cs
- CollectionChangeEventArgs.cs
- DocumentOrderComparer.cs
- ImageConverter.cs