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
- DataGridViewRowCancelEventArgs.cs
- DecimalStorage.cs
- XPathSelectionIterator.cs
- PropertyItemInternal.cs
- ListViewItem.cs
- ActivityBindForm.Designer.cs
- VisualStateChangedEventArgs.cs
- ObjectNotFoundException.cs
- filewebresponse.cs
- CommandDevice.cs
- XmlNodeReader.cs
- ConfigXmlSignificantWhitespace.cs
- Path.cs
- DocumentSequenceHighlightLayer.cs
- AccessDataSource.cs
- NodeLabelEditEvent.cs
- CatalogZoneBase.cs
- CommandConverter.cs
- RenderTargetBitmap.cs
- NavigationHelper.cs
- __Filters.cs
- OracleBFile.cs
- FormattedText.cs
- MemoryPressure.cs
- AutomationAttributeInfo.cs
- DrawTreeNodeEventArgs.cs
- Speller.cs
- ScriptIgnoreAttribute.cs
- CapabilitiesRule.cs
- PanningMessageFilter.cs
- SafeBitVector32.cs
- Control.cs
- ThemeConfigurationDialog.cs
- WinHttpWebProxyFinder.cs
- TraceListener.cs
- FormsAuthenticationConfiguration.cs
- DbParameterHelper.cs
- IBuiltInEvidence.cs
- ToolboxBitmapAttribute.cs
- TypeInfo.cs
- StringAttributeCollection.cs
- LocatorManager.cs
- KeyToListMap.cs
- XslCompiledTransform.cs
- ConstraintEnumerator.cs
- FrameworkContextData.cs
- FormsAuthenticationModule.cs
- CodeConditionStatement.cs
- Item.cs
- DictionarySectionHandler.cs
- CreateCardRequest.cs
- SessionStateModule.cs
- SqlDependencyListener.cs
- ConfigurationManager.cs
- CurrentChangingEventArgs.cs
- PropertyCollection.cs
- CriticalHandle.cs
- SimpleWorkerRequest.cs
- Dynamic.cs
- AssemblyInfo.cs
- RemoteWebConfigurationHostServer.cs
- TemplateBindingExpressionConverter.cs
- TraversalRequest.cs
- StorageEntityContainerMapping.cs
- ExceptionNotification.cs
- XmlWhitespace.cs
- IsolatedStorageFileStream.cs
- MetadataProperty.cs
- XmlFormatExtensionPointAttribute.cs
- OutputCache.cs
- FlowDocumentPaginator.cs
- HttpModuleActionCollection.cs
- SqlDeflator.cs
- MultitargetUtil.cs
- RawStylusInputCustomData.cs
- PartialArray.cs
- _Events.cs
- Property.cs
- OleDbReferenceCollection.cs
- Visual3DCollection.cs
- ExtensibleClassFactory.cs
- TextBoxBaseDesigner.cs
- QueryableDataSourceHelper.cs
- ActivationServices.cs
- ServiceMemoryGates.cs
- SurrogateChar.cs
- ObjectToModelValueConverter.cs
- CommandPlan.cs
- TypeListConverter.cs
- ProcessHostFactoryHelper.cs
- WindowsBrush.cs
- ListDictionary.cs
- DataRowChangeEvent.cs
- ListViewUpdatedEventArgs.cs
- GroupByExpressionRewriter.cs
- TypeConverter.cs
- ComponentChangingEvent.cs
- LifetimeServices.cs
- WindowsRebar.cs
- TreeViewImageIndexConverter.cs