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
- WindowsClientElement.cs
- FixUp.cs
- ThemeableAttribute.cs
- DataGridViewCellParsingEventArgs.cs
- ToolStripItemBehavior.cs
- Mapping.cs
- MessageQueuePermissionEntryCollection.cs
- ClientScriptManagerWrapper.cs
- XmlWriter.cs
- WebDescriptionAttribute.cs
- OdbcDataAdapter.cs
- PathTooLongException.cs
- EnumerableRowCollection.cs
- webbrowsersite.cs
- ConfigurationStrings.cs
- IteratorDescriptor.cs
- DoubleCollectionConverter.cs
- StringArrayConverter.cs
- RSAPKCS1SignatureDeformatter.cs
- VisualStateGroup.cs
- SystemIcons.cs
- TypeRestriction.cs
- ValidationService.cs
- ContentPresenter.cs
- ErrorFormatter.cs
- RemotingConfiguration.cs
- Atom10FormatterFactory.cs
- WindowsPen.cs
- MailAddressCollection.cs
- ISAPIApplicationHost.cs
- UpdatePanelTrigger.cs
- HtmlMeta.cs
- Misc.cs
- ContextMarshalException.cs
- TextBoxLine.cs
- DelegatingMessage.cs
- ChildTable.cs
- MethodToken.cs
- InputScope.cs
- DependencyPropertyDescriptor.cs
- ValueType.cs
- TextProperties.cs
- AsymmetricKeyExchangeDeformatter.cs
- TriggerCollection.cs
- DataContractSerializerSection.cs
- XmlNodeChangedEventArgs.cs
- PrivilegedConfigurationManager.cs
- ActionFrame.cs
- HtmlContainerControl.cs
- FormsAuthenticationCredentials.cs
- HtmlInputPassword.cs
- TextElementEnumerator.cs
- BinaryObjectInfo.cs
- InputLanguage.cs
- CategoryGridEntry.cs
- DataBoundControlAdapter.cs
- CompressedStack.cs
- DesignerAdRotatorAdapter.cs
- StackBuilderSink.cs
- PrintController.cs
- BulletedList.cs
- FormView.cs
- SerialReceived.cs
- LinqDataSourceValidationException.cs
- TargetParameterCountException.cs
- CodeParameterDeclarationExpressionCollection.cs
- OutOfMemoryException.cs
- ZipFileInfo.cs
- ZoneButton.cs
- Activity.cs
- PaintValueEventArgs.cs
- UrlMapping.cs
- Filter.cs
- DelegateTypeInfo.cs
- SystemWebCachingSectionGroup.cs
- LicenseContext.cs
- SByteStorage.cs
- ScaleTransform.cs
- SemanticAnalyzer.cs
- ScrollableControl.cs
- Module.cs
- DecimalKeyFrameCollection.cs
- ModelItemDictionaryImpl.cs
- RemotingSurrogateSelector.cs
- TreeNode.cs
- DescendentsWalker.cs
- ClaimTypeElement.cs
- SecurityTimestamp.cs
- SkinIDTypeConverter.cs
- ButtonFieldBase.cs
- CodeStatementCollection.cs
- StateDesigner.TransitionInfo.cs
- FloaterBaseParaClient.cs
- DataListItemCollection.cs
- KeyGestureConverter.cs
- CurrencyManager.cs
- TypeAccessException.cs
- LineBreak.cs
- MasterPageParser.cs
- SqlSupersetValidator.cs