Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / VScrollBar.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DecimalConverter.cs
- DefaultValueAttribute.cs
- TreeNode.cs
- BinaryCommonClasses.cs
- XmlFileEditor.cs
- Query.cs
- ValidationSummary.cs
- MsmqBindingFilter.cs
- PolygonHotSpot.cs
- TextSearch.cs
- SecondaryIndexDefinition.cs
- HierarchicalDataBoundControlAdapter.cs
- TabItemAutomationPeer.cs
- HwndHost.cs
- ScriptRegistrationManager.cs
- _NegoStream.cs
- ItemChangedEventArgs.cs
- ProjectionQueryOptionExpression.cs
- IDQuery.cs
- TableAutomationPeer.cs
- DynamicDocumentPaginator.cs
- ADConnectionHelper.cs
- IisTraceWebEventProvider.cs
- ToolZone.cs
- BamlRecordReader.cs
- PerformanceCounterManager.cs
- ServiceContractGenerationContext.cs
- UserPreferenceChangedEventArgs.cs
- TableDetailsRow.cs
- BezierSegment.cs
- Rotation3DKeyFrameCollection.cs
- BinaryCommonClasses.cs
- CompiledRegexRunnerFactory.cs
- CombinedGeometry.cs
- ExpandCollapsePattern.cs
- HGlobalSafeHandle.cs
- JavaScriptSerializer.cs
- IDQuery.cs
- SqlCaseSimplifier.cs
- DrawingBrush.cs
- VirtualPathProvider.cs
- ADMembershipUser.cs
- SafeRegistryHandle.cs
- SAPICategories.cs
- ButtonField.cs
- Transform3D.cs
- FormViewPageEventArgs.cs
- DataGridBoolColumn.cs
- UIElementPropertyUndoUnit.cs
- __Filters.cs
- GridSplitter.cs
- SafeBitVector32.cs
- MappingItemCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- NavigationWindow.cs
- DataBoundControl.cs
- RestrictedTransactionalPackage.cs
- ExclusiveTcpListener.cs
- RealProxy.cs
- ComplexPropertyEntry.cs
- SQLInt32.cs
- _ListenerResponseStream.cs
- DocobjHost.cs
- CommandPlan.cs
- TextTreeRootNode.cs
- Overlapped.cs
- MessageHeaderException.cs
- XNodeNavigator.cs
- UrlPropertyAttribute.cs
- SortDescriptionCollection.cs
- OleDbSchemaGuid.cs
- ExpressionBinding.cs
- ImageField.cs
- _SingleItemRequestCache.cs
- IPipelineRuntime.cs
- UniqueEventHelper.cs
- XmlWriterTraceListener.cs
- CodeIterationStatement.cs
- ConditionalAttribute.cs
- ParallelTimeline.cs
- CacheModeConverter.cs
- ShapingEngine.cs
- TriggerAction.cs
- ThreadAttributes.cs
- DetailsViewPageEventArgs.cs
- ObjectRef.cs
- SubstitutionList.cs
- CompositeActivityCodeGenerator.cs
- SerialPort.cs
- MasterPageCodeDomTreeGenerator.cs
- CheckBoxPopupAdapter.cs
- XmlSortKey.cs
- IsolatedStorageFilePermission.cs
- _ProxyChain.cs
- RoutingChannelExtension.cs
- QueryFunctions.cs
- StdValidatorsAndConverters.cs
- Rotation3DAnimation.cs
- DataGridViewSelectedRowCollection.cs
- OrderingExpression.cs