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
- ColumnCollection.cs
- sitestring.cs
- ScrollContentPresenter.cs
- WebPartEditVerb.cs
- LineSegment.cs
- DataTable.cs
- Rotation3D.cs
- EventLogTraceListener.cs
- EntityCommandDefinition.cs
- DataViewManagerListItemTypeDescriptor.cs
- UIElementPropertyUndoUnit.cs
- StringTraceRecord.cs
- ExpressionDumper.cs
- Vector3DCollection.cs
- TdsValueSetter.cs
- Rule.cs
- Style.cs
- InlineObject.cs
- MenuItemStyleCollection.cs
- HttpWebResponse.cs
- TextPenaltyModule.cs
- XmlDomTextWriter.cs
- HttpListenerPrefixCollection.cs
- HtmlLiteralTextAdapter.cs
- RuntimeVariableList.cs
- FactoryRecord.cs
- X509Certificate2.cs
- Matrix.cs
- EntityModelSchemaGenerator.cs
- GPStream.cs
- RegexRunner.cs
- MimeTypePropertyAttribute.cs
- Divide.cs
- StringOutput.cs
- _PooledStream.cs
- PageHandlerFactory.cs
- HtmlValidationSummaryAdapter.cs
- CurrencyManager.cs
- HorizontalAlignConverter.cs
- SafeCoTaskMem.cs
- PagedDataSource.cs
- CallbackWrapper.cs
- SnapLine.cs
- BinaryFormatterSinks.cs
- DataSourceProvider.cs
- SignerInfo.cs
- QilXmlReader.cs
- ValidationContext.cs
- WorkflowRuntimeServiceElement.cs
- SamlDelegatingWriter.cs
- SafeLocalAllocation.cs
- Bind.cs
- DefinitionProperties.cs
- ConfigurationStrings.cs
- EditorBrowsableAttribute.cs
- TextAnchor.cs
- ActivityBindForm.Designer.cs
- ScrollItemPattern.cs
- DocumentPageView.cs
- DbDataReader.cs
- StylusButton.cs
- UnaryQueryOperator.cs
- XmlSchemaCompilationSettings.cs
- SymbolEqualComparer.cs
- ResXResourceSet.cs
- TimeoutHelper.cs
- InputChannel.cs
- NavigatorInput.cs
- FixedStringLookup.cs
- EdmComplexTypeAttribute.cs
- DES.cs
- Filter.cs
- FixedTextBuilder.cs
- FilteredDataSetHelper.cs
- Utils.cs
- ActivationServices.cs
- ReliableSessionElement.cs
- ModifierKeysValueSerializer.cs
- HwndProxyElementProvider.cs
- HttpInputStream.cs
- Command.cs
- ErrorItem.cs
- DataListGeneralPage.cs
- EdmFunctionAttribute.cs
- EasingQuaternionKeyFrame.cs
- ChunkedMemoryStream.cs
- ServiceElement.cs
- DispatcherFrame.cs
- HtmlTextArea.cs
- SqlInternalConnectionSmi.cs
- StubHelpers.cs
- InputLangChangeEvent.cs
- NativeWindow.cs
- SocketAddress.cs
- ContentPresenter.cs
- CodeTypeDeclarationCollection.cs
- CodeNamespace.cs
- DesignerProperties.cs
- RectIndependentAnimationStorage.cs
- XslVisitor.cs