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
- RegexWriter.cs
- PropertyBuilder.cs
- FileInfo.cs
- Point3DConverter.cs
- HitTestParameters.cs
- BackStopAuthenticationModule.cs
- ReadOnlyKeyedCollection.cs
- ShaderRenderModeValidation.cs
- ArraySubsetEnumerator.cs
- storepermission.cs
- EnumUnknown.cs
- SmiConnection.cs
- EventSchemaTraceListener.cs
- EmbeddedMailObject.cs
- BaseComponentEditor.cs
- DeleteMemberBinder.cs
- RuntimeCompatibilityAttribute.cs
- CellConstant.cs
- OleDbCommand.cs
- SchemeSettingElementCollection.cs
- DataTemplateSelector.cs
- ForeignConstraint.cs
- RightsManagementInformation.cs
- TextDecorations.cs
- XmlSerializerSection.cs
- DiscoveryServerProtocol.cs
- SignatureResourcePool.cs
- Binding.cs
- AuthenticationService.cs
- MarkedHighlightComponent.cs
- OleDbDataReader.cs
- SqlCommandSet.cs
- SystemIPInterfaceProperties.cs
- Win32.cs
- ResXResourceReader.cs
- DeploymentSectionCache.cs
- AssemblyAttributesGoHere.cs
- XmlNavigatorFilter.cs
- OdbcStatementHandle.cs
- URI.cs
- compensatingcollection.cs
- OracleConnection.cs
- SiteIdentityPermission.cs
- FormClosingEvent.cs
- TdsParserHelperClasses.cs
- CharKeyFrameCollection.cs
- OleCmdHelper.cs
- Padding.cs
- Point.cs
- Point3DAnimationUsingKeyFrames.cs
- GeometryModel3D.cs
- DesignerSerializationVisibilityAttribute.cs
- DataGridViewRowsAddedEventArgs.cs
- ClosureBinding.cs
- Trace.cs
- EditorPart.cs
- FileController.cs
- SelectManyQueryOperator.cs
- SoundPlayerAction.cs
- BitmapSizeOptions.cs
- CategoryAttribute.cs
- DiscoveryReference.cs
- AutoFocusStyle.xaml.cs
- OracleRowUpdatedEventArgs.cs
- MultipleCopiesCollection.cs
- FontFamily.cs
- BufferedReadStream.cs
- AttributeAction.cs
- QilUnary.cs
- DataListItemCollection.cs
- DictionaryEntry.cs
- WebControl.cs
- DataTemplate.cs
- EditableRegion.cs
- WebControl.cs
- SqlUtil.cs
- PassportIdentity.cs
- EmptyStringExpandableObjectConverter.cs
- CodeNamespaceImport.cs
- ImageField.cs
- DefaultObjectMappingItemCollection.cs
- DescendantBaseQuery.cs
- TreeNodeConverter.cs
- SiteOfOriginContainer.cs
- ListBoxAutomationPeer.cs
- FixedLineResult.cs
- DefaultTextStoreTextComposition.cs
- ConfigErrorGlyph.cs
- TemplateInstanceAttribute.cs
- DependencyPropertyKey.cs
- SqlWriter.cs
- ToolStripItemEventArgs.cs
- CompressedStack.cs
- ActiveDesignSurfaceEvent.cs
- SettingsBase.cs
- CalendarDay.cs
- glyphs.cs
- TileBrush.cs
- oledbconnectionstring.cs
- XmlSchemaAny.cs