Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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
- SystemParameters.cs
- UserControlCodeDomTreeGenerator.cs
- ListViewGroupConverter.cs
- ListenerSessionConnection.cs
- MetafileHeader.cs
- SapiGrammar.cs
- NewExpression.cs
- SmtpTransport.cs
- _FtpControlStream.cs
- ObjectSet.cs
- MetadataFile.cs
- SqlDataSourceConnectionPanel.cs
- RectAnimationBase.cs
- EntityObject.cs
- SynchronizationValidator.cs
- FastPropertyAccessor.cs
- Relationship.cs
- WebPartRestoreVerb.cs
- OrthographicCamera.cs
- ConnectionPointCookie.cs
- MethodRental.cs
- HttpContext.cs
- DesignerValidatorAdapter.cs
- LinkDescriptor.cs
- DataGridViewCellStyleChangedEventArgs.cs
- MissingFieldException.cs
- CustomError.cs
- ProjectionCamera.cs
- PackWebResponse.cs
- LinqDataSource.cs
- TextPattern.cs
- DataListItemEventArgs.cs
- LinkButton.cs
- XmlSchemaObjectCollection.cs
- DataGridViewDataErrorEventArgs.cs
- BinaryNode.cs
- FrameworkRichTextComposition.cs
- OleDbConnection.cs
- ColorContextHelper.cs
- InkCanvasSelection.cs
- SupportsEventValidationAttribute.cs
- SHA256.cs
- DependencyPropertyValueSerializer.cs
- ObjectStateFormatter.cs
- ClickablePoint.cs
- SerializableAttribute.cs
- ToolStripDropDownButton.cs
- PropertyManager.cs
- ExtensibleSyndicationObject.cs
- TripleDES.cs
- SctClaimDictionary.cs
- XmlProcessingInstruction.cs
- Unit.cs
- MessageQueueException.cs
- IBuiltInEvidence.cs
- ObjectReferenceStack.cs
- coordinatorscratchpad.cs
- PropertyInfoSet.cs
- GuidelineCollection.cs
- EntryPointNotFoundException.cs
- URIFormatException.cs
- DesignerActionVerbItem.cs
- AnnouncementSendsAsyncResult.cs
- CodeAttachEventStatement.cs
- GraphicsContext.cs
- Path.cs
- DataFormats.cs
- XamlSerializerUtil.cs
- SymbolPair.cs
- ImageUrlEditor.cs
- TableAdapterManagerGenerator.cs
- DataGridViewDesigner.cs
- SettingsPropertyNotFoundException.cs
- CatalogPart.cs
- HttpRawResponse.cs
- RootBrowserWindowAutomationPeer.cs
- PartialCachingAttribute.cs
- ListComponentEditorPage.cs
- EmptyEnumerable.cs
- NavigationWindow.cs
- IPHostEntry.cs
- PartManifestEntry.cs
- GeneralTransform2DTo3D.cs
- ImageButton.cs
- SafeNativeMethods.cs
- HtmlInputFile.cs
- XmlHierarchicalEnumerable.cs
- ToggleProviderWrapper.cs
- SettingsPropertyNotFoundException.cs
- LineServicesRun.cs
- MD5.cs
- LinkedResourceCollection.cs
- IndexedGlyphRun.cs
- DesignerView.xaml.cs
- ListCollectionView.cs
- SqlConnectionStringBuilder.cs
- SubtreeProcessor.cs
- StrongNamePublicKeyBlob.cs
- TableStyle.cs
- ListItemCollection.cs