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
- XpsPartBase.cs
- BrowserDefinition.cs
- DynamicActivity.cs
- DoubleStorage.cs
- GlobalizationSection.cs
- LinkedList.cs
- _ProxyChain.cs
- MouseCaptureWithinProperty.cs
- FrameworkContentElement.cs
- WebServiceEnumData.cs
- ButtonFlatAdapter.cs
- SimpleFileLog.cs
- TextRangeEdit.cs
- InternalsVisibleToAttribute.cs
- DependencySource.cs
- PrintDialogException.cs
- InkCanvasAutomationPeer.cs
- DateTimeValueSerializer.cs
- safesecurityhelperavalon.cs
- EnumerableCollectionView.cs
- FacetValues.cs
- LayoutTableCell.cs
- PersistenceMetadataNamespace.cs
- ComplexBindingPropertiesAttribute.cs
- RequestDescription.cs
- ObjectListGeneralPage.cs
- ToolStripSeparator.cs
- DataSourceComponent.cs
- InvokerUtil.cs
- IteratorDescriptor.cs
- XmlDataSource.cs
- DbDataRecord.cs
- ComplexLine.cs
- XslVisitor.cs
- IisTraceWebEventProvider.cs
- mansign.cs
- ToolStripContentPanelRenderEventArgs.cs
- FileDialog_Vista.cs
- WindowsGraphicsCacheManager.cs
- WebPartTransformerCollection.cs
- FontDialog.cs
- XmlCharacterData.cs
- ProtocolsSection.cs
- CapabilitiesState.cs
- FixedNode.cs
- DrawingVisual.cs
- ToolStripItemTextRenderEventArgs.cs
- DataGridViewCellEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- RegexMatchCollection.cs
- HierarchicalDataTemplate.cs
- DesignerExtenders.cs
- HtmlValidatorAdapter.cs
- DiagnosticTraceRecords.cs
- HttpHandlersSection.cs
- SrgsOneOf.cs
- WmlPanelAdapter.cs
- FacetDescriptionElement.cs
- SharedUtils.cs
- GZipDecoder.cs
- PersistChildrenAttribute.cs
- CacheEntry.cs
- ClientData.cs
- EntityViewGenerator.cs
- Calendar.cs
- TextAutomationPeer.cs
- SchemaComplexType.cs
- CollectionAdapters.cs
- ConsoleKeyInfo.cs
- BindingContext.cs
- CodeDirectoryCompiler.cs
- OpCodes.cs
- Int32.cs
- ListItemCollection.cs
- XomlDesignerLoader.cs
- WpfXamlLoader.cs
- DeobfuscatingStream.cs
- EventLogPermissionEntry.cs
- ClientFormsAuthenticationCredentials.cs
- WebPartManager.cs
- DataGridRow.cs
- SecurityUtils.cs
- CommandBindingCollection.cs
- LateBoundBitmapDecoder.cs
- COM2ColorConverter.cs
- ReadOnlyAttribute.cs
- InternalResources.cs
- EntityModelBuildProvider.cs
- TaskFileService.cs
- VirtualPathProvider.cs
- DictionaryEntry.cs
- XamlPathDataSerializer.cs
- XmlElementAttribute.cs
- ContentPlaceHolder.cs
- RtfToXamlLexer.cs
- loginstatus.cs
- DataChangedEventManager.cs
- QilPatternFactory.cs
- TypeConverters.cs
- Canonicalizers.cs