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
- GradientStop.cs
- OleDbFactory.cs
- XPathScanner.cs
- SweepDirectionValidation.cs
- ToolBarDesigner.cs
- PropertyGridView.cs
- DetailsViewUpdatedEventArgs.cs
- PropertyGridCommands.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XmlBinaryWriterSession.cs
- TableLayoutColumnStyleCollection.cs
- ConsumerConnectionPoint.cs
- CodeDOMProvider.cs
- ImageMap.cs
- DecodeHelper.cs
- SamlAction.cs
- Timeline.cs
- ExecutedRoutedEventArgs.cs
- SpotLight.cs
- DecoderReplacementFallback.cs
- COAUTHIDENTITY.cs
- TransactionFlowBindingElement.cs
- TextReader.cs
- SqlParameterCollection.cs
- Serializer.cs
- DesignerSerializationOptionsAttribute.cs
- SharedStatics.cs
- ValueProviderWrapper.cs
- HtmlWindow.cs
- DateTimeParse.cs
- ArgumentsParser.cs
- RectangleGeometry.cs
- HtmlShimManager.cs
- Filter.cs
- SapiRecoContext.cs
- InfoCardRSACryptoProvider.cs
- EntitySqlQueryCacheEntry.cs
- TraceSection.cs
- RequestQueryParser.cs
- X509Certificate.cs
- PropertyTabAttribute.cs
- NetworkCredential.cs
- BoundColumn.cs
- SchemaComplexType.cs
- unitconverter.cs
- DateTimeConverter2.cs
- SessionPageStateSection.cs
- UIElement3DAutomationPeer.cs
- WebPartZoneCollection.cs
- TitleStyle.cs
- GiveFeedbackEvent.cs
- TypeConverterMarkupExtension.cs
- WasEndpointConfigContainer.cs
- DataGrid.cs
- CheckoutException.cs
- WebZone.cs
- ClientOperationFormatterProvider.cs
- Scanner.cs
- DetailsViewUpdatedEventArgs.cs
- RightsManagementInformation.cs
- UnknownBitmapEncoder.cs
- Block.cs
- TableLayoutStyle.cs
- SaveFileDialog.cs
- Vector3DCollection.cs
- ConfigXmlWhitespace.cs
- TemplateControlCodeDomTreeGenerator.cs
- Interlocked.cs
- FormViewModeEventArgs.cs
- QuotedPrintableStream.cs
- AnnotationComponentManager.cs
- TextParagraph.cs
- ClientFormsIdentity.cs
- Privilege.cs
- FileLevelControlBuilderAttribute.cs
- NetworkCredential.cs
- SpecialNameAttribute.cs
- uribuilder.cs
- AutomationPropertyInfo.cs
- ConnectionOrientedTransportElement.cs
- ObjectCloneHelper.cs
- MarkupCompiler.cs
- StrokeNodeOperations.cs
- ResourceDefaultValueAttribute.cs
- TaskSchedulerException.cs
- SHA256.cs
- DefaultEventAttribute.cs
- RectangleHotSpot.cs
- Compiler.cs
- SqlAliaser.cs
- _FtpDataStream.cs
- NamespaceInfo.cs
- Variant.cs
- HtmlControlPersistable.cs
- DataGridTextColumn.cs
- URLString.cs
- WindowsRegion.cs
- SizeConverter.cs
- Model3D.cs
- DocumentViewerBaseAutomationPeer.cs