Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / HScrollBar.cs / 1305376 / 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
- NameValueFileSectionHandler.cs
- MeasurementDCInfo.cs
- VerticalAlignConverter.cs
- BitmapEffectInput.cs
- FlagsAttribute.cs
- basenumberconverter.cs
- OdbcCommandBuilder.cs
- NegotiationTokenAuthenticator.cs
- SrgsSubset.cs
- WebBaseEventKeyComparer.cs
- TileBrush.cs
- HtmlValidationSummaryAdapter.cs
- XslAstAnalyzer.cs
- ProcessStartInfo.cs
- ClientProxyGenerator.cs
- TripleDESCryptoServiceProvider.cs
- TreeNodeCollection.cs
- DynamicControl.cs
- TextWriterEngine.cs
- Quaternion.cs
- DataListItem.cs
- Vector3DConverter.cs
- Size3D.cs
- DbMetaDataCollectionNames.cs
- AutomationPatternInfo.cs
- IndexOutOfRangeException.cs
- Win32NamedPipes.cs
- GlyphsSerializer.cs
- MoveSizeWinEventHandler.cs
- DoubleLinkListEnumerator.cs
- ResourceReader.cs
- DelegatingMessage.cs
- HierarchicalDataBoundControl.cs
- GridViewDeletedEventArgs.cs
- StatusBar.cs
- WebPartActionVerb.cs
- _IPv6Address.cs
- SourceCollection.cs
- DataMemberFieldConverter.cs
- XmlSerializerVersionAttribute.cs
- EdmSchemaAttribute.cs
- ThreadExceptionEvent.cs
- AssemblyContextControlItem.cs
- BitConverter.cs
- ValuePattern.cs
- CompoundFileIOPermission.cs
- SQLBoolean.cs
- JsonClassDataContract.cs
- XmlIlGenerator.cs
- ClockController.cs
- _TransmitFileOverlappedAsyncResult.cs
- RenderingBiasValidation.cs
- TraceUtils.cs
- OdbcException.cs
- ConsumerConnectionPointCollection.cs
- SerializationException.cs
- CallContext.cs
- MethodBuilder.cs
- HttpDictionary.cs
- loginstatus.cs
- HttpProxyTransportBindingElement.cs
- DragAssistanceManager.cs
- UnknownBitmapEncoder.cs
- ReceiveCompletedEventArgs.cs
- TextEditorParagraphs.cs
- PointConverter.cs
- StrokeNodeData.cs
- IgnoreDeviceFilterElement.cs
- StdRegProviderWrapper.cs
- SafeArrayRankMismatchException.cs
- HtmlInputSubmit.cs
- BamlRecordWriter.cs
- NameValueFileSectionHandler.cs
- CheckBox.cs
- MenuItem.cs
- KerberosSecurityTokenProvider.cs
- RMEnrollmentPage1.cs
- ArrayElementGridEntry.cs
- DateTimeConverter.cs
- WebServiceData.cs
- FontSource.cs
- IpcClientManager.cs
- SiteMapPath.cs
- TemplateLookupAction.cs
- PageAdapter.cs
- ParameterElement.cs
- MdImport.cs
- NativeMethods.cs
- BoundingRectTracker.cs
- XmlDesigner.cs
- __FastResourceComparer.cs
- ProtectedConfigurationSection.cs
- ExceptionValidationRule.cs
- EventData.cs
- ToolStripHighContrastRenderer.cs
- DbParameterHelper.cs
- StringInfo.cs
- OutputCacheSection.cs
- ManagementEventWatcher.cs
- XmlSerializerSection.cs