Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigXmlReader.cs
- PublisherIdentityPermission.cs
- PolicyManager.cs
- MessageDroppedTraceRecord.cs
- GridViewPageEventArgs.cs
- _HeaderInfo.cs
- BinaryObjectReader.cs
- DependencyObject.cs
- ReflectPropertyDescriptor.cs
- SearchForVirtualItemEventArgs.cs
- TextDecorationCollection.cs
- ContainerSelectorGlyph.cs
- StrongNameKeyPair.cs
- OleCmdHelper.cs
- SeparatorAutomationPeer.cs
- XPathNavigatorKeyComparer.cs
- InheritanceContextChangedEventManager.cs
- ServiceBuildProvider.cs
- ZipIOExtraFieldElement.cs
- CodeCatchClauseCollection.cs
- ObjectTypeMapping.cs
- PermissionListSet.cs
- Token.cs
- HashLookup.cs
- PartBasedPackageProperties.cs
- DefaultSerializationProviderAttribute.cs
- AppDomainAttributes.cs
- RuleSet.cs
- cryptoapiTransform.cs
- DictionaryEntry.cs
- EntityReference.cs
- SplashScreen.cs
- EventHandlersStore.cs
- HyperLink.cs
- HelpKeywordAttribute.cs
- PnrpPeerResolverBindingElement.cs
- DependencyPropertyHelper.cs
- X509Utils.cs
- SqlClientWrapperSmiStream.cs
- PointIndependentAnimationStorage.cs
- ZoneMembershipCondition.cs
- SapiRecoInterop.cs
- TextSpanModifier.cs
- XmlSchemaInclude.cs
- DataGridViewToolTip.cs
- InitializationEventAttribute.cs
- ListParagraph.cs
- XmlSchemaAll.cs
- WindowsScrollBarBits.cs
- PropertyInfoSet.cs
- HybridDictionary.cs
- GradientBrush.cs
- HashHelper.cs
- AsynchronousChannelMergeEnumerator.cs
- WebPartMenu.cs
- URLMembershipCondition.cs
- SqlCacheDependencyDatabaseCollection.cs
- CodeTypeParameterCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- COM2ExtendedTypeConverter.cs
- RemotingSurrogateSelector.cs
- DataPagerFieldCommandEventArgs.cs
- WebConfigurationManager.cs
- XMLUtil.cs
- FontWeight.cs
- InfoCardKeyedHashAlgorithm.cs
- ImageConverter.cs
- NTAccount.cs
- SelectionGlyphBase.cs
- QuaternionIndependentAnimationStorage.cs
- COAUTHINFO.cs
- WpfMemberInvoker.cs
- DbConnectionPoolCounters.cs
- HwndStylusInputProvider.cs
- LicenseContext.cs
- DataViewListener.cs
- ServiceThrottle.cs
- OpacityConverter.cs
- OleDbConnection.cs
- SoapFault.cs
- InteropAutomationProvider.cs
- Thickness.cs
- EntryWrittenEventArgs.cs
- Stylus.cs
- EntityDataSourceView.cs
- ReferenceEqualityComparer.cs
- ResXResourceWriter.cs
- SqlDataReader.cs
- StylusPointProperty.cs
- CustomWebEventKey.cs
- SubpageParagraph.cs
- LiteralControl.cs
- CallbackTimeoutsElement.cs
- AttachedPropertyMethodSelector.cs
- AutomationIdentifier.cs
- ToolBar.cs
- TypedTableBase.cs
- TextOptionsInternal.cs
- ResourceType.cs
- Semaphore.cs