Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / HScrollBar.cs / 1305376 / 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
- HtmlTableRowCollection.cs
- SchemaCollectionPreprocessor.cs
- ZipIOExtraFieldPaddingElement.cs
- ObjectConverter.cs
- EventData.cs
- DataGridViewHeaderCell.cs
- RSAPKCS1SignatureFormatter.cs
- OleDbReferenceCollection.cs
- GenericAuthenticationEventArgs.cs
- XsdBuildProvider.cs
- XdrBuilder.cs
- DebugInfoExpression.cs
- ViewCellRelation.cs
- HostProtectionPermission.cs
- MessageQueuePermissionAttribute.cs
- SystemWebExtensionsSectionGroup.cs
- String.cs
- NetworkInformationPermission.cs
- InheritanceAttribute.cs
- DynamicQueryStringParameter.cs
- TagMapInfo.cs
- WebPartTransformerCollection.cs
- AnnotationResourceChangedEventArgs.cs
- TableProviderWrapper.cs
- IndexedEnumerable.cs
- BindingBase.cs
- TraceContext.cs
- Pens.cs
- exports.cs
- XmlnsDictionary.cs
- LiteralControl.cs
- SelectionProviderWrapper.cs
- ToolStripButton.cs
- CodeExpressionRuleDeclaration.cs
- UInt32.cs
- ScriptControlDescriptor.cs
- EditorZoneAutoFormat.cs
- HtmlInputHidden.cs
- PageThemeCodeDomTreeGenerator.cs
- StylusButtonCollection.cs
- FieldToken.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- KnownTypesHelper.cs
- SiteMapProvider.cs
- DES.cs
- KeyProperty.cs
- ChangeInterceptorAttribute.cs
- WaitHandle.cs
- ColorTransformHelper.cs
- ViewManager.cs
- CommonObjectSecurity.cs
- InputScopeNameConverter.cs
- ByteStreamMessage.cs
- EventLogEntry.cs
- HttpModulesSection.cs
- Int64AnimationBase.cs
- CompilerError.cs
- AsymmetricAlgorithm.cs
- DataDesignUtil.cs
- DataColumnPropertyDescriptor.cs
- StylusCollection.cs
- QueryStringParameter.cs
- ColorAnimation.cs
- SmiSettersStream.cs
- DocumentViewerAutomationPeer.cs
- OrderedParallelQuery.cs
- EntityDataSourceConfigureObjectContext.cs
- CompositeFontFamily.cs
- ContentPlaceHolder.cs
- FeatureSupport.cs
- XmlMtomReader.cs
- DrawListViewItemEventArgs.cs
- GridToolTip.cs
- ChannelManager.cs
- ExternalFile.cs
- DependencyPropertyAttribute.cs
- XhtmlStyleClass.cs
- BamlReader.cs
- OleDbParameter.cs
- PageHandlerFactory.cs
- DynamicResourceExtensionConverter.cs
- WebServiceResponse.cs
- X509SubjectKeyIdentifierClause.cs
- SqlInternalConnectionTds.cs
- CssTextWriter.cs
- SystemIPv6InterfaceProperties.cs
- XmlNode.cs
- XPathEmptyIterator.cs
- ReadWriteControlDesigner.cs
- WebHeaderCollection.cs
- wmiprovider.cs
- MDIClient.cs
- localization.cs
- NamespaceTable.cs
- StateItem.cs
- Compilation.cs
- ExpressionList.cs
- TagPrefixCollection.cs
- TemplateColumn.cs
- OutputCacheProfile.cs