Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlCollation.cs
- BitStack.cs
- TableLayout.cs
- SqlRecordBuffer.cs
- SendKeys.cs
- XPathSelfQuery.cs
- SimpleBitVector32.cs
- IResourceProvider.cs
- Activity.cs
- SpecularMaterial.cs
- ContextMenu.cs
- Speller.cs
- ExpandableObjectConverter.cs
- XPathBuilder.cs
- ZipIOCentralDirectoryFileHeader.cs
- ProfilePropertyMetadata.cs
- TreeViewAutomationPeer.cs
- WmlLabelAdapter.cs
- AsymmetricKeyExchangeFormatter.cs
- SourceSwitch.cs
- CorrelationManager.cs
- PointAnimationUsingPath.cs
- FontConverter.cs
- ElapsedEventArgs.cs
- TiffBitmapEncoder.cs
- MediaEntryAttribute.cs
- XamlStream.cs
- DataSourceProvider.cs
- InfoCardXmlSerializer.cs
- SecurityException.cs
- ProcessModelInfo.cs
- ProxyHwnd.cs
- MediaContextNotificationWindow.cs
- SiteMapProvider.cs
- BeginEvent.cs
- ConfigurationException.cs
- StringKeyFrameCollection.cs
- XmlAttributes.cs
- HtmlAnchor.cs
- SettingsPropertyValue.cs
- VariantWrapper.cs
- DataTablePropertyDescriptor.cs
- RegistryDataKey.cs
- DependencyPropertyAttribute.cs
- __ConsoleStream.cs
- PropertyInformation.cs
- TextEndOfParagraph.cs
- RequestResizeEvent.cs
- PropertyGridEditorPart.cs
- VirtualPathUtility.cs
- PerformanceCounterManager.cs
- OperatingSystem.cs
- ServiceReference.cs
- SamlSerializer.cs
- DataObjectAttribute.cs
- XmlFileEditor.cs
- TypedTableBaseExtensions.cs
- MetadataItemCollectionFactory.cs
- PackWebResponse.cs
- SqlUtil.cs
- LogSwitch.cs
- QilGeneratorEnv.cs
- WindowsFormsSynchronizationContext.cs
- PathSegment.cs
- ViewStateException.cs
- SQLInt32.cs
- IListConverters.cs
- Pair.cs
- ParseHttpDate.cs
- OpenFileDialog.cs
- ContentHostHelper.cs
- BinaryParser.cs
- TableCell.cs
- RulePatternOps.cs
- XmlSchemaRedefine.cs
- HtmlTextArea.cs
- DropShadowEffect.cs
- StartUpEventArgs.cs
- BuildProviderCollection.cs
- AdapterSwitches.cs
- XPathDocumentBuilder.cs
- FocusTracker.cs
- Button.cs
- LocalIdCollection.cs
- ByteStorage.cs
- SHA256Managed.cs
- WizardStepBase.cs
- MarshalByValueComponent.cs
- DifferencingCollection.cs
- ResourceDictionary.cs
- Accessors.cs
- WSFederationHttpSecurityElement.cs
- SchemaElementLookUpTable.cs
- ValidationPropertyAttribute.cs
- Ray3DHitTestResult.cs
- HtmlAnchor.cs
- Int32Rect.cs
- ControlPropertyNameConverter.cs
- AutomationEvent.cs
- StrokeCollection.cs