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
- ObjectContext.cs
- OperationResponse.cs
- GiveFeedbackEventArgs.cs
- MsmqAppDomainProtocolHandler.cs
- DataBoundLiteralControl.cs
- TableProviderWrapper.cs
- DataGridViewRowConverter.cs
- DialogResultConverter.cs
- Function.cs
- HtmlMeta.cs
- RelAssertionDirectKeyIdentifierClause.cs
- SecuritySessionServerSettings.cs
- DecoderFallback.cs
- ReadOnlyPropertyMetadata.cs
- TemplateControlParser.cs
- GroupByExpressionRewriter.cs
- XpsFontSubsetter.cs
- GridViewEditEventArgs.cs
- PageThemeBuildProvider.cs
- PenCursorManager.cs
- followingsibling.cs
- DropDownHolder.cs
- SimplePropertyEntry.cs
- TransportListener.cs
- ServiceBusyException.cs
- NonSerializedAttribute.cs
- DataServiceProviderMethods.cs
- GlyphingCache.cs
- GPPOINTF.cs
- ArgumentElement.cs
- BufferedGraphics.cs
- User.cs
- AuthenticationSection.cs
- ErrorRuntimeConfig.cs
- SectionInput.cs
- TextSegment.cs
- XmlDataSourceNodeDescriptor.cs
- RequestQueue.cs
- ChannelBinding.cs
- XmlUtf8RawTextWriter.cs
- SchemaHelper.cs
- FormView.cs
- XmlSchemaGroup.cs
- GeneralTransform3DTo2D.cs
- Ops.cs
- SmiContextFactory.cs
- Tracer.cs
- LayoutEngine.cs
- TextControl.cs
- SeekStoryboard.cs
- BoolLiteral.cs
- ProtocolElementCollection.cs
- NotImplementedException.cs
- JoinSymbol.cs
- DbDataRecord.cs
- ClientSession.cs
- RightsManagementEncryptedStream.cs
- RtfNavigator.cs
- InfoCardSymmetricCrypto.cs
- BinarySerializer.cs
- PermissionSetTriple.cs
- SizeAnimation.cs
- followingsibling.cs
- SByte.cs
- ObjectDataSourceSelectingEventArgs.cs
- Trigger.cs
- PlanCompilerUtil.cs
- ThumbAutomationPeer.cs
- ForeignKeyConstraint.cs
- RSAOAEPKeyExchangeDeformatter.cs
- HwndMouseInputProvider.cs
- ThousandthOfEmRealPoints.cs
- MetadataItem_Static.cs
- InternalConfirm.cs
- CompoundFileIOPermission.cs
- Compiler.cs
- MultitargetUtil.cs
- BoolExpression.cs
- SqlServices.cs
- HtmlMeta.cs
- ChangeTracker.cs
- shaperfactoryquerycachekey.cs
- TranslateTransform.cs
- DecoderBestFitFallback.cs
- CompilerGlobalScopeAttribute.cs
- DbProviderFactory.cs
- SQLBinary.cs
- RelationshipType.cs
- TextTreeNode.cs
- HttpPostLocalhostServerProtocol.cs
- FacetChecker.cs
- ConfigWriter.cs
- BrowserCapabilitiesFactory35.cs
- BasicBrowserDialog.designer.cs
- TransformedBitmap.cs
- DocumentPageTextView.cs
- CodeGenerationManager.cs
- SortedSetDebugView.cs
- ImageSource.cs
- DbModificationClause.cs