Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ReferenceEqualityComparer.cs
- UIElement.cs
- CorrelationValidator.cs
- PopupRoot.cs
- XmlDocumentFieldSchema.cs
- ForceCopyBuildProvider.cs
- WebConfigurationHost.cs
- IItemContainerGenerator.cs
- KeyBinding.cs
- KnownAssembliesSet.cs
- TargetControlTypeCache.cs
- ReferenceEqualityComparer.cs
- XmlnsCache.cs
- PkcsUtils.cs
- DoubleLinkListEnumerator.cs
- RemoveStoryboard.cs
- OptimalTextSource.cs
- ExecutionPropertyManager.cs
- Collection.cs
- Context.cs
- CustomErrorsSection.cs
- PerfCounters.cs
- SelectionProviderWrapper.cs
- AlternateViewCollection.cs
- XmlSchemaAll.cs
- CaseInsensitiveOrdinalStringComparer.cs
- Validator.cs
- mansign.cs
- GetWinFXPath.cs
- AttributeSetAction.cs
- Monitor.cs
- CheckBoxList.cs
- MultilineStringConverter.cs
- AbandonedMutexException.cs
- XPathEmptyIterator.cs
- X509Certificate2.cs
- DataRecordObjectView.cs
- TemplateGroupCollection.cs
- SchemaImporterExtensionsSection.cs
- Overlapped.cs
- ViewManager.cs
- Attributes.cs
- WmpBitmapDecoder.cs
- OutOfMemoryException.cs
- ManagedFilter.cs
- remotingproxy.cs
- Page.cs
- QueryAccessibilityHelpEvent.cs
- TTSVoice.cs
- EncodingTable.cs
- LinqDataSourceStatusEventArgs.cs
- _ListenerResponseStream.cs
- QueryResponse.cs
- MessageDecoder.cs
- RequestCachePolicy.cs
- ImmComposition.cs
- InstallerTypeAttribute.cs
- DoubleLink.cs
- Accessors.cs
- ConfigurationValidatorAttribute.cs
- TextEndOfParagraph.cs
- WebContext.cs
- MessageRpc.cs
- BulletedList.cs
- Rectangle.cs
- HttpDebugHandler.cs
- ImportCatalogPart.cs
- DataGridViewSelectedCellCollection.cs
- XmlAnyAttributeAttribute.cs
- ReadOnlyDictionary.cs
- DiagnosticTrace.cs
- ToolStripStatusLabel.cs
- BooleanSwitch.cs
- XmlAnyElementAttribute.cs
- PermissionListSet.cs
- EdmItemCollection.cs
- cookie.cs
- ThreadExceptionEvent.cs
- ConstrainedGroup.cs
- ColumnMapVisitor.cs
- TransportContext.cs
- FamilyMapCollection.cs
- GroupBox.cs
- LinkedResourceCollection.cs
- HotSpot.cs
- EntityRecordInfo.cs
- PointCollectionValueSerializer.cs
- MetadataCacheItem.cs
- ChtmlPhoneCallAdapter.cs
- HtmlMeta.cs
- SchemaElement.cs
- ServicesExceptionNotHandledEventArgs.cs
- DbDataReader.cs
- EntityTransaction.cs
- ContractListAdapter.cs
- CommandConverter.cs
- PageBreakRecord.cs
- QueryIntervalOp.cs
- BuilderPropertyEntry.cs
- DefaultDiscoveryServiceExtension.cs