Code:
/ FX-1434 / FX-1434 / 1.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
- ContentPropertyAttribute.cs
- ConnectionsZone.cs
- HttpCapabilitiesBase.cs
- FieldNameLookup.cs
- MarkupObject.cs
- ClosableStream.cs
- MsmqIntegrationBindingElement.cs
- ByeMessage11.cs
- WebBrowserNavigatedEventHandler.cs
- SqlCacheDependencyDatabase.cs
- OracleDataAdapter.cs
- DelegatedStream.cs
- BezierSegment.cs
- Convert.cs
- XPathSelectionIterator.cs
- XmlIlVisitor.cs
- PermissionListSet.cs
- ObjectStateManager.cs
- GatewayIPAddressInformationCollection.cs
- Scene3D.cs
- PlanCompiler.cs
- SignatureToken.cs
- _Connection.cs
- TracedNativeMethods.cs
- StringConcat.cs
- OledbConnectionStringbuilder.cs
- EditingCoordinator.cs
- CodeArrayCreateExpression.cs
- _TimerThread.cs
- ExtendLockCommand.cs
- DbProviderFactoriesConfigurationHandler.cs
- XmlSchemaException.cs
- ChangePassword.cs
- ControlValuePropertyAttribute.cs
- InProcStateClientManager.cs
- RemotingServices.cs
- RunWorkerCompletedEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- HtmlTextArea.cs
- TableStyle.cs
- ValueQuery.cs
- ReceiveActivityDesigner.cs
- TraceInternal.cs
- HandlerBase.cs
- HebrewNumber.cs
- StylusPointProperties.cs
- ContainerAction.cs
- XmlQualifiedNameTest.cs
- WsdlBuildProvider.cs
- TableRowsCollectionEditor.cs
- XmlDocumentType.cs
- ReliableChannelListener.cs
- PropertyGridEditorPart.cs
- HtmlElement.cs
- OracleInfoMessageEventArgs.cs
- LocationUpdates.cs
- XmlDataSourceView.cs
- XmlSchemaExporter.cs
- MessageDecoder.cs
- FormatterServices.cs
- TreeBuilder.cs
- FixedStringLookup.cs
- WindowsFormsHostPropertyMap.cs
- Monitor.cs
- XmlSerializerSection.cs
- DeviceSpecific.cs
- ZeroOpNode.cs
- DataRecordInfo.cs
- PauseStoryboard.cs
- CommandHelper.cs
- WebConfigurationFileMap.cs
- DataGridViewRowHeaderCell.cs
- Panel.cs
- EventSourceCreationData.cs
- RectangleHotSpot.cs
- ZipArchive.cs
- MasterPage.cs
- InternalPermissions.cs
- DataBinding.cs
- CustomErrorCollection.cs
- TextBoxBase.cs
- HScrollProperties.cs
- FontNamesConverter.cs
- UnsafeNativeMethods.cs
- AssertSection.cs
- DSASignatureDeformatter.cs
- XmlWrappingWriter.cs
- LinkedResource.cs
- TransactionScope.cs
- WindowsGrip.cs
- HttpListener.cs
- TargetInvocationException.cs
- versioninfo.cs
- PackageRelationshipSelector.cs
- CircleHotSpot.cs
- BaseContextMenu.cs
- DataTablePropertyDescriptor.cs
- SystemIdentity.cs
- DrawingCollection.cs
- KeyMatchBuilder.cs