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
- ConnectionOrientedTransportElement.cs
- DataPager.cs
- XamlStyleSerializer.cs
- XmlSchemaInclude.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- _CookieModule.cs
- PenThread.cs
- CacheHelper.cs
- UniqueEventHelper.cs
- DataViewSetting.cs
- SoapEnvelopeProcessingElement.cs
- WebPartAddingEventArgs.cs
- ForceCopyBuildProvider.cs
- WebPartDescription.cs
- WebRequest.cs
- ThreadExceptionDialog.cs
- VisemeEventArgs.cs
- TypedElement.cs
- ELinqQueryState.cs
- WeakReferenceKey.cs
- SchemaExporter.cs
- PackWebResponse.cs
- ObjectSelectorEditor.cs
- BamlCollectionHolder.cs
- RadioButton.cs
- SqlParameterCollection.cs
- UrlPath.cs
- SmtpLoginAuthenticationModule.cs
- IPipelineRuntime.cs
- WindowsUpDown.cs
- ControlValuePropertyAttribute.cs
- SettingsSavedEventArgs.cs
- DataGridViewColumnEventArgs.cs
- ServiceReference.cs
- SocketElement.cs
- ConfigXmlText.cs
- PassportPrincipal.cs
- CompoundFileReference.cs
- RegexInterpreter.cs
- GetMemberBinder.cs
- KeyedHashAlgorithm.cs
- AttributeUsageAttribute.cs
- FormViewDeletedEventArgs.cs
- AttachmentService.cs
- WebEventCodes.cs
- DataColumnMappingCollection.cs
- RegexWorker.cs
- SafeNativeMethods.cs
- PrimitiveXmlSerializers.cs
- As.cs
- _DomainName.cs
- ExpressionBuilder.cs
- DataGridViewRowsRemovedEventArgs.cs
- UnauthorizedWebPart.cs
- XmlSchemaDatatype.cs
- SoapException.cs
- MatrixCamera.cs
- NamespaceExpr.cs
- CodeSubDirectory.cs
- HttpRawResponse.cs
- dbenumerator.cs
- EventWaitHandleSecurity.cs
- RowBinding.cs
- ThousandthOfEmRealPoints.cs
- InstanceDataCollection.cs
- XmlTextReader.cs
- ProjectedWrapper.cs
- OpenTypeLayoutCache.cs
- OracleCommandSet.cs
- AssociationTypeEmitter.cs
- WebPartPersonalization.cs
- UrlMappingCollection.cs
- ClientUtils.cs
- MsmqIntegrationBindingElement.cs
- SiteMap.cs
- HostVisual.cs
- TimeManager.cs
- sitestring.cs
- XamlSerializationHelper.cs
- DependencyProperty.cs
- DeclarationUpdate.cs
- SrgsElementFactory.cs
- Route.cs
- StrongNameMembershipCondition.cs
- SqlReferenceCollection.cs
- TreeNodeMouseHoverEvent.cs
- Util.cs
- LabelEditEvent.cs
- PropertyEmitterBase.cs
- GridViewRowPresenter.cs
- SizeAnimation.cs
- DefaultObjectMappingItemCollection.cs
- ConfigurationLoader.cs
- ObjectSecurity.cs
- DataGridPageChangedEventArgs.cs
- CommonDialog.cs
- EdmTypeAttribute.cs
- AutomationProperties.cs
- Trigger.cs
- Vector3DAnimationBase.cs