Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CheckedListBox.cs
- CheckBoxPopupAdapter.cs
- Parsers.cs
- CompilerScope.Storage.cs
- Tag.cs
- ProcessHost.cs
- WorkflowInlining.cs
- SystemUdpStatistics.cs
- VirtualDirectoryMapping.cs
- FormViewRow.cs
- BaseInfoTable.cs
- WpfWebRequestHelper.cs
- DataGridTextBox.cs
- HttpResponseWrapper.cs
- DataBinder.cs
- SessionIDManager.cs
- PersonalizationDictionary.cs
- RijndaelManagedTransform.cs
- SystemInfo.cs
- LexicalChunk.cs
- HtmlTextArea.cs
- XmlSignificantWhitespace.cs
- localization.cs
- ValidatorCompatibilityHelper.cs
- Compiler.cs
- FontInfo.cs
- ValuePattern.cs
- RSAPKCS1SignatureDeformatter.cs
- SerializationStore.cs
- ManagementOperationWatcher.cs
- StringUtil.cs
- Triplet.cs
- SystemDiagnosticsSection.cs
- SharedStatics.cs
- ObjectDataSourceView.cs
- IgnoreSection.cs
- FolderLevelBuildProviderCollection.cs
- Decorator.cs
- TraceContextRecord.cs
- NetPeerTcpBindingElement.cs
- SafeArrayTypeMismatchException.cs
- StyleCollection.cs
- List.cs
- RoleManagerEventArgs.cs
- MailSettingsSection.cs
- SymbolType.cs
- PersistenceProviderBehavior.cs
- WebConfigurationHostFileChange.cs
- FixedSOMTableCell.cs
- InvalidPropValue.cs
- FileCodeGroup.cs
- AppendHelper.cs
- ServiceThrottle.cs
- LogConverter.cs
- BitmapEffect.cs
- DesignTimeTemplateParser.cs
- FragmentNavigationEventArgs.cs
- BorderSidesEditor.cs
- RegionData.cs
- Schedule.cs
- __ConsoleStream.cs
- HwndTarget.cs
- DictionaryManager.cs
- BindingSource.cs
- DecoderExceptionFallback.cs
- XmlObjectSerializerWriteContext.cs
- Storyboard.cs
- InputMethodStateChangeEventArgs.cs
- DriveInfo.cs
- UIPropertyMetadata.cs
- DiagnosticsConfigurationHandler.cs
- RepeatInfo.cs
- WebPartEventArgs.cs
- querybuilder.cs
- WebBrowserHelper.cs
- StyleHelper.cs
- VirtualPath.cs
- ConfigXmlSignificantWhitespace.cs
- HandleExceptionArgs.cs
- ConfigurationElementCollection.cs
- AddInToken.cs
- EncoderExceptionFallback.cs
- HttpStreamXmlDictionaryReader.cs
- BamlLocalizer.cs
- RichTextBox.cs
- MemoryRecordBuffer.cs
- RadioButtonStandardAdapter.cs
- UserPersonalizationStateInfo.cs
- AtlasWeb.Designer.cs
- HGlobalSafeHandle.cs
- RegisterInfo.cs
- PixelFormats.cs
- LingerOption.cs
- Variant.cs
- Internal.cs
- CompositionAdorner.cs
- DiscoveryClientDocuments.cs
- Msec.cs
- ListView.cs
- BatchServiceHost.cs