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
- AssociationSetEnd.cs
- NullableDecimalMinMaxAggregationOperator.cs
- MatrixTransform.cs
- ErrorRuntimeConfig.cs
- DynamicDataRouteHandler.cs
- HttpHostedTransportConfiguration.cs
- EventLogLink.cs
- ToolTip.cs
- CodeMethodReturnStatement.cs
- DescendantQuery.cs
- WindowInteropHelper.cs
- DialogBaseForm.cs
- ProvidePropertyAttribute.cs
- DrawingAttributes.cs
- DataBinder.cs
- ZoneButton.cs
- PresentationAppDomainManager.cs
- DrawingGroup.cs
- StatusBarPanel.cs
- TemplateBamlTreeBuilder.cs
- ViewBase.cs
- DataTableReader.cs
- ClientSettings.cs
- RequestDescription.cs
- OperationResponse.cs
- DBCommand.cs
- UiaCoreTypesApi.cs
- NativeWrapper.cs
- SynchronizingStream.cs
- WebReferencesBuildProvider.cs
- DSASignatureDeformatter.cs
- PropertyMetadata.cs
- WriteableBitmap.cs
- ConfigurationManagerInternal.cs
- SyndicationDeserializer.cs
- QueryOperationResponseOfT.cs
- ModulesEntry.cs
- ConfigurationElementCollection.cs
- ProxyManager.cs
- keycontainerpermission.cs
- StorageFunctionMapping.cs
- DesignTimeData.cs
- TextTreeDeleteContentUndoUnit.cs
- ContainerUIElement3D.cs
- AmbiguousMatchException.cs
- FixedStringLookup.cs
- ToolStripHighContrastRenderer.cs
- PersonalizationEntry.cs
- WebControl.cs
- FrameworkContentElementAutomationPeer.cs
- ActivityWithResult.cs
- RepeatInfo.cs
- ConnectorRouter.cs
- SchemaMapping.cs
- FacetDescriptionElement.cs
- ViewPort3D.cs
- DispatcherOperation.cs
- MessageDescription.cs
- QueryOptionExpression.cs
- XPathParser.cs
- LassoHelper.cs
- ParsedAttributeCollection.cs
- AutomationElementCollection.cs
- ConfigXmlAttribute.cs
- EncodingTable.cs
- ToolStripItemClickedEventArgs.cs
- PerformanceCounterPermissionEntryCollection.cs
- ConnectionsZone.cs
- MsmqOutputChannel.cs
- QueryOperationResponseOfT.cs
- Hex.cs
- BamlReader.cs
- XmlComment.cs
- TaskFactory.cs
- FamilyCollection.cs
- LinqDataSourceInsertEventArgs.cs
- FreezableDefaultValueFactory.cs
- SafeRightsManagementPubHandle.cs
- RichTextBox.cs
- QueryPageSettingsEventArgs.cs
- WebBrowserContainer.cs
- CrossContextChannel.cs
- ClientType.cs
- CodeDirectoryCompiler.cs
- File.cs
- StringUtil.cs
- MultiSelectRootGridEntry.cs
- DbConnectionPoolIdentity.cs
- BasePattern.cs
- UpdatePanelTrigger.cs
- EventlogProvider.cs
- Command.cs
- ViewStateException.cs
- DesignerVerbCollection.cs
- AddingNewEventArgs.cs
- XhtmlTextWriter.cs
- CodeMemberProperty.cs
- CLRBindingWorker.cs
- GlyphRunDrawing.cs
- SharingService.cs