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
- WindowsGraphics.cs
- TlsnegoTokenProvider.cs
- Metadata.cs
- ThicknessAnimationBase.cs
- ProcessRequestArgs.cs
- HtmlTableCell.cs
- MailAddress.cs
- CheckBox.cs
- Paragraph.cs
- Vars.cs
- HttpCapabilitiesBase.cs
- CodeTypeDeclaration.cs
- MultiPropertyDescriptorGridEntry.cs
- TaiwanCalendar.cs
- ToolStripRenderer.cs
- SHA1.cs
- PrefixQName.cs
- OpenTypeLayout.cs
- XpsLiterals.cs
- GridViewDeleteEventArgs.cs
- X509Certificate2.cs
- PermissionSetEnumerator.cs
- DoWorkEventArgs.cs
- PanelStyle.cs
- NetDataContractSerializer.cs
- EventLogger.cs
- XPathSelectionIterator.cs
- ClientOptions.cs
- ToolboxComponentsCreatedEventArgs.cs
- NativeMethods.cs
- TlsnegoTokenProvider.cs
- HtmlControlPersistable.cs
- PeerName.cs
- QilDataSource.cs
- DateTimeHelper.cs
- CodeTypeReference.cs
- XhtmlBasicFormAdapter.cs
- RangeExpression.cs
- ILGenerator.cs
- ListItemsPage.cs
- InheritablePropertyChangeInfo.cs
- SharedDp.cs
- TriggerActionCollection.cs
- ProcessModelInfo.cs
- CharKeyFrameCollection.cs
- DataGridViewColumnCollection.cs
- CalendarDesigner.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ViewKeyConstraint.cs
- DataViewSettingCollection.cs
- EmbeddedObject.cs
- XPathScanner.cs
- XmlComplianceUtil.cs
- ObjectCloneHelper.cs
- ClipboardProcessor.cs
- BufferBuilder.cs
- BoundConstants.cs
- EnumUnknown.cs
- MenuAdapter.cs
- ImageSource.cs
- FontStyles.cs
- MemberProjectedSlot.cs
- AdvancedBindingPropertyDescriptor.cs
- TextEditorSpelling.cs
- QilPatternFactory.cs
- ConfigurationCollectionAttribute.cs
- TypeGeneratedEventArgs.cs
- StoreAnnotationsMap.cs
- Char.cs
- EventPrivateKey.cs
- DoubleStorage.cs
- Misc.cs
- HtmlListAdapter.cs
- HandleScope.cs
- PositiveTimeSpanValidator.cs
- MembershipValidatePasswordEventArgs.cs
- DataContext.cs
- OraclePermissionAttribute.cs
- RubberbandSelector.cs
- EventMappingSettings.cs
- XPathNavigatorReader.cs
- DomNameTable.cs
- StreamingContext.cs
- ReaderOutput.cs
- Error.cs
- OdbcUtils.cs
- LogRestartAreaEnumerator.cs
- ReturnEventArgs.cs
- ContentElement.cs
- PeerObject.cs
- GridViewSelectEventArgs.cs
- ChtmlCommandAdapter.cs
- wmiprovider.cs
- ConfigurationValidatorBase.cs
- FormViewDeletedEventArgs.cs
- EpmAttributeNameBuilder.cs
- NullableDoubleSumAggregationOperator.cs
- TrackBarRenderer.cs
- Schema.cs
- ConfigurationManagerHelperFactory.cs