Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / VScrollBar.cs / 1 / VScrollBar.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.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Runtime.InteropServices; ////// /// [ComVisible(true)] [ClassInterface(ClassInterfaceType.AutoDispatch)] [SRDescription(SR.DescriptionVScrollBar)] public class VScrollBar : ScrollBar { ///Represents /// a standard Windows vertical scroll bar. ////// /// /// protected override CreateParams CreateParams { [SecurityPermission(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)] get { CreateParams cp = base.CreateParams; cp.Style |= NativeMethods.SBS_VERT; 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(SystemInformation.VerticalScrollBarWidth, 80); } } ////// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override RightToLeft RightToLeft { get { return RightToLeft.No; } set { } } ////// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler RightToLeftChanged { add { base.RightToLeftChanged += value; } remove { base.RightToLeftChanged -= value; } } } } // 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
- RegexRunner.cs
- Exceptions.cs
- SrgsToken.cs
- TemplatedWizardStep.cs
- PixelFormatConverter.cs
- AdornerDecorator.cs
- ToolStripControlHost.cs
- RootProfilePropertySettingsCollection.cs
- MultipartIdentifier.cs
- StorageModelBuildProvider.cs
- FileDialogCustomPlace.cs
- GenericEnumConverter.cs
- SystemBrushes.cs
- XamlStyleSerializer.cs
- DataGridViewCellPaintingEventArgs.cs
- BitVector32.cs
- HttpProfileGroupBase.cs
- CodeExporter.cs
- XmlImplementation.cs
- RootNamespaceAttribute.cs
- EntityDataSourceSelectedEventArgs.cs
- DynamicPropertyReader.cs
- DocumentManager.cs
- MediaCommands.cs
- DispatcherSynchronizationContext.cs
- IdentifierService.cs
- BrowserCapabilitiesCompiler.cs
- SizeConverter.cs
- XmlSerializerNamespaces.cs
- XmlFormatWriterGenerator.cs
- DataBoundControlAdapter.cs
- LexicalChunk.cs
- MarginCollapsingState.cs
- Transactions.cs
- OracleNumber.cs
- DataGridRelationshipRow.cs
- DataListItemEventArgs.cs
- SortedDictionary.cs
- AndMessageFilter.cs
- OutputCacheProfile.cs
- ToolStripScrollButton.cs
- TiffBitmapEncoder.cs
- ProtocolsConfiguration.cs
- AttachedAnnotationChangedEventArgs.cs
- GroupQuery.cs
- EditorZoneBase.cs
- DetailsViewModeEventArgs.cs
- SkewTransform.cs
- Message.cs
- HighlightVisual.cs
- BufferedReadStream.cs
- SoapInteropTypes.cs
- SessionPageStateSection.cs
- StrongNameUtility.cs
- SharedPersonalizationStateInfo.cs
- FixedPage.cs
- MessageEncoder.cs
- WebPartConnectionsDisconnectVerb.cs
- Util.cs
- PageCatalogPart.cs
- CharAnimationBase.cs
- CodeDirectoryCompiler.cs
- TextServicesPropertyRanges.cs
- PolyLineSegment.cs
- HtmlHistory.cs
- Literal.cs
- SolidBrush.cs
- DLinqColumnProvider.cs
- DesignRelationCollection.cs
- MainMenu.cs
- activationcontext.cs
- TcpAppDomainProtocolHandler.cs
- HTMLTagNameToTypeMapper.cs
- OperationFormatStyle.cs
- TextDecoration.cs
- XAMLParseException.cs
- ConstructorArgumentAttribute.cs
- ServicePointManagerElement.cs
- FontFamily.cs
- EncryptedPackage.cs
- FilterQueryOptionExpression.cs
- COM2ColorConverter.cs
- SqlDataSource.cs
- StrongNameMembershipCondition.cs
- MessageDecoder.cs
- SignatureToken.cs
- CommandDevice.cs
- ClassData.cs
- Parameter.cs
- WebRequestModuleElement.cs
- HttpRequestCacheValidator.cs
- FormatConvertedBitmap.cs
- DbConnectionPool.cs
- RoleManagerEventArgs.cs
- HttpPostProtocolImporter.cs
- DataControlPagerLinkButton.cs
- QilGeneratorEnv.cs
- PrivilegedConfigurationManager.cs
- MobileControlDesigner.cs
- FileDialog.cs