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
- NamedObject.cs
- MetadataArtifactLoaderComposite.cs
- ServiceReference.cs
- CodeTypeReference.cs
- ZeroOpNode.cs
- ProfileSettings.cs
- FontUnit.cs
- EditorReuseAttribute.cs
- LoginUtil.cs
- InfiniteIntConverter.cs
- UserControl.cs
- MinimizableAttributeTypeConverter.cs
- sqlnorm.cs
- ListSourceHelper.cs
- ToolStripManager.cs
- XsdBuildProvider.cs
- TextTreeFixupNode.cs
- SourceLineInfo.cs
- Missing.cs
- WebScriptClientGenerator.cs
- ErrorFormatterPage.cs
- InlineUIContainer.cs
- TypeToken.cs
- SpellerInterop.cs
- ChameleonKey.cs
- ObjectSpanRewriter.cs
- Metadata.cs
- MsmqIntegrationProcessProtocolHandler.cs
- SamlAssertion.cs
- BitmapInitialize.cs
- WindowCollection.cs
- SqlUserDefinedAggregateAttribute.cs
- AnonymousIdentificationModule.cs
- SystemIPv6InterfaceProperties.cs
- PartitionerQueryOperator.cs
- columnmapkeybuilder.cs
- BaseParser.cs
- CodeRegionDirective.cs
- ContractCodeDomInfo.cs
- HandlerMappingMemo.cs
- EntityDataSourceDesigner.cs
- Effect.cs
- StrokeIntersection.cs
- DataBindingList.cs
- PropertyCollection.cs
- ClientSettingsSection.cs
- BaseCodePageEncoding.cs
- TraceSection.cs
- Transform.cs
- EventEntry.cs
- OptionUsage.cs
- ObjectHandle.cs
- DataColumn.cs
- CacheAxisQuery.cs
- CollectionEditVerbManager.cs
- ComponentEditorForm.cs
- ValidationPropertyAttribute.cs
- PrinterUnitConvert.cs
- AutoResizedEvent.cs
- PageCodeDomTreeGenerator.cs
- CodeAttributeArgument.cs
- LoadItemsEventArgs.cs
- DetailsViewRow.cs
- SoapIncludeAttribute.cs
- Converter.cs
- DataColumnMappingCollection.cs
- SortDescription.cs
- WindowsFont.cs
- TextDecorationLocationValidation.cs
- ComplexTypeEmitter.cs
- FontWeight.cs
- DocumentSequenceHighlightLayer.cs
- EntityContainer.cs
- EngineSiteSapi.cs
- PropertyEmitterBase.cs
- XmlNotation.cs
- CompiledQueryCacheKey.cs
- ValidationError.cs
- HtmlWindowCollection.cs
- ContainerParagraph.cs
- DataObjectCopyingEventArgs.cs
- RenderingEventArgs.cs
- BezierSegment.cs
- _ListenerResponseStream.cs
- RouteUrlExpressionBuilder.cs
- CookieProtection.cs
- CaseInsensitiveComparer.cs
- ValueUnavailableException.cs
- ClientApiGenerator.cs
- cookiecollection.cs
- NavigationExpr.cs
- DateTimeConstantAttribute.cs
- WorkflowMarkupSerializer.cs
- FixedDocumentPaginator.cs
- AssemblyAssociatedContentFileAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- Size3DConverter.cs
- Control.cs
- AlternationConverter.cs
- RadioButton.cs