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
- COM2PropertyBuilderUITypeEditor.cs
- DbParameterCollection.cs
- HttpResponseWrapper.cs
- Knowncolors.cs
- WCFBuildProvider.cs
- Image.cs
- DbDeleteCommandTree.cs
- DocumentViewerAutomationPeer.cs
- RegexInterpreter.cs
- WindowsFormsSectionHandler.cs
- HostedNamedPipeTransportManager.cs
- ObjectNavigationPropertyMapping.cs
- FileChangeNotifier.cs
- InstanceNotReadyException.cs
- RotateTransform.cs
- MemoryResponseElement.cs
- AccessControlEntry.cs
- LongValidatorAttribute.cs
- DynamicQueryStringParameter.cs
- DataFormats.cs
- basemetadatamappingvisitor.cs
- _OverlappedAsyncResult.cs
- TypeContext.cs
- RequestCachePolicy.cs
- CaseExpr.cs
- XmlAttributeCollection.cs
- NavigationProperty.cs
- WinEventWrap.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- BuildResult.cs
- WindowsUpDown.cs
- TypeDescriptionProviderAttribute.cs
- DictionaryEntry.cs
- CookieParameter.cs
- While.cs
- PackageDigitalSignatureManager.cs
- Set.cs
- ObjectDataProvider.cs
- MarkupExtensionParser.cs
- CapabilitiesAssignment.cs
- Point3DCollection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- XmlTypeAttribute.cs
- CqlParserHelpers.cs
- CompositeDataBoundControl.cs
- KeySplineConverter.cs
- SchemaMerger.cs
- PropertyCondition.cs
- HttpRequestTraceRecord.cs
- HttpTransportManager.cs
- ListenerConnectionModeReader.cs
- FormViewDeletedEventArgs.cs
- XmlNodeChangedEventArgs.cs
- TreeNodeEventArgs.cs
- ModelEditingScope.cs
- PathSegmentCollection.cs
- BitVector32.cs
- ProtocolInformationReader.cs
- HttpDictionary.cs
- Expression.cs
- Cursor.cs
- WebPartEditorCancelVerb.cs
- WindowsSpinner.cs
- NamespaceList.cs
- GrammarBuilderBase.cs
- HtmlButton.cs
- SafeFileMapViewHandle.cs
- SrgsGrammarCompiler.cs
- RoleManagerModule.cs
- ReachNamespaceInfo.cs
- RequestQueryParser.cs
- TextRangeBase.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- FormsAuthenticationUser.cs
- Constants.cs
- PreloadedPackages.cs
- ProcessHostServerConfig.cs
- ProjectionPath.cs
- DecimalAnimation.cs
- controlskin.cs
- RawStylusInputReport.cs
- EventLogEntry.cs
- WarningException.cs
- HttpResponse.cs
- PropertyInformation.cs
- BackStopAuthenticationModule.cs
- HashHelper.cs
- QueryCacheManager.cs
- RoleGroupCollectionEditor.cs
- IEnumerable.cs
- RemotingException.cs
- HwndStylusInputProvider.cs
- EllipseGeometry.cs
- UdpAnnouncementEndpoint.cs
- ServiceErrorHandler.cs
- XPathMessageFilterElement.cs
- ComEventsHelper.cs
- FontDialog.cs
- ListViewTableRow.cs
- Helper.cs