Code:
/ FX-1434 / FX-1434 / 1.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
- XPathAncestorQuery.cs
- NamespaceList.cs
- CardSpacePolicyElement.cs
- OneToOneMappingSerializer.cs
- TextDecorationCollection.cs
- ValidatingReaderNodeData.cs
- Calendar.cs
- ActivityCollectionMarkupSerializer.cs
- Config.cs
- SmiRequestExecutor.cs
- ColorMap.cs
- BmpBitmapDecoder.cs
- DataViewListener.cs
- Block.cs
- RootContext.cs
- SimpleBitVector32.cs
- InputScopeNameConverter.cs
- SchemaMapping.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- DesignConnection.cs
- ActionMessageFilterTable.cs
- MessageBox.cs
- Durable.cs
- TransportElement.cs
- ConnectionsZone.cs
- TypeToArgumentTypeConverter.cs
- StyleXamlParser.cs
- OdbcError.cs
- Converter.cs
- GeometryModel3D.cs
- ColumnPropertiesGroup.cs
- HealthMonitoringSection.cs
- PrintPreviewDialog.cs
- ToolboxItemCollection.cs
- DataGridViewDataConnection.cs
- TableCellsCollectionEditor.cs
- ControlFilterExpression.cs
- PtsPage.cs
- IdentityManager.cs
- MetroSerializationManager.cs
- M3DUtil.cs
- XmlAttributeOverrides.cs
- WebPartDisplayModeCancelEventArgs.cs
- MemoryRecordBuffer.cs
- ToolStripManager.cs
- SslStream.cs
- DataViewSetting.cs
- MissingFieldException.cs
- ComponentRenameEvent.cs
- FunctionMappingTranslator.cs
- ProfileBuildProvider.cs
- FontDialog.cs
- PaperSource.cs
- CategoriesDocumentFormatter.cs
- XmlBaseReader.cs
- Model3DCollection.cs
- DelimitedListTraceListener.cs
- JavascriptXmlWriterWrapper.cs
- SettingsProperty.cs
- Evidence.cs
- GenericUI.cs
- XmlSchemaGroup.cs
- NativeCompoundFileAPIs.cs
- PriorityBinding.cs
- mongolianshape.cs
- CodeDomSerializerException.cs
- InternalMappingException.cs
- ToolStripLocationCancelEventArgs.cs
- SizeLimitedCache.cs
- ErrorTableItemStyle.cs
- RemoteWebConfigurationHost.cs
- FormatVersion.cs
- GrammarBuilder.cs
- XmlNullResolver.cs
- SizeConverter.cs
- ExtendedProperty.cs
- SpecialFolderEnumConverter.cs
- MenuItemBindingCollection.cs
- FlagPanel.cs
- RotateTransform.cs
- IImplicitResourceProvider.cs
- TextPatternIdentifiers.cs
- LocatorBase.cs
- OutOfProcStateClientManager.cs
- ThemeableAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- BeginEvent.cs
- InvalidateEvent.cs
- ColorConverter.cs
- xmlfixedPageInfo.cs
- Timer.cs
- ILGenerator.cs
- RegionInfo.cs
- SystemIcons.cs
- KoreanCalendar.cs
- DbgCompiler.cs
- EncodingNLS.cs
- PropertyPath.cs
- TraceProvider.cs
- XmlSerializerOperationFormatter.cs