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
- ToolStripItemImageRenderEventArgs.cs
- Camera.cs
- DesignTableCollection.cs
- ConfigUtil.cs
- TreeNodeClickEventArgs.cs
- MILUtilities.cs
- IisTraceWebEventProvider.cs
- DefaultMemberAttribute.cs
- AsyncOperation.cs
- Splitter.cs
- Internal.cs
- Command.cs
- SqlCharStream.cs
- EllipticalNodeOperations.cs
- NamespaceQuery.cs
- DocumentViewerBaseAutomationPeer.cs
- InvalidComObjectException.cs
- QilXmlWriter.cs
- precedingquery.cs
- ReadOnlyDataSourceView.cs
- CellLabel.cs
- TabPanel.cs
- ProfessionalColors.cs
- UrlMappingsModule.cs
- DataViewSetting.cs
- GraphicsPathIterator.cs
- ElementMarkupObject.cs
- WebProxyScriptElement.cs
- HttpException.cs
- SmtpReplyReaderFactory.cs
- SQLInt32.cs
- NetworkInformationException.cs
- XmlSequenceWriter.cs
- TableCellsCollectionEditor.cs
- BamlRecordWriter.cs
- MenuEventArgs.cs
- RoleGroup.cs
- ObjectToken.cs
- UIElementParaClient.cs
- PenLineCapValidation.cs
- SecurityKeyUsage.cs
- GenericAuthenticationEventArgs.cs
- EditorZoneBase.cs
- _NetRes.cs
- IgnoreFlushAndCloseStream.cs
- JsonWriterDelegator.cs
- HttpHandlerActionCollection.cs
- DataGridViewCellStyleChangedEventArgs.cs
- RawStylusInputReport.cs
- OleDbDataReader.cs
- StatusBarItemAutomationPeer.cs
- EdmItemCollection.OcAssemblyCache.cs
- GACMembershipCondition.cs
- MembershipUser.cs
- TabletDeviceInfo.cs
- EventToken.cs
- DataServices.cs
- PagedDataSource.cs
- BufferBuilder.cs
- TranslateTransform3D.cs
- DataGridViewCellConverter.cs
- RowToParametersTransformer.cs
- CodePrimitiveExpression.cs
- StylusPointPropertyId.cs
- TextProviderWrapper.cs
- RawStylusInputCustomData.cs
- DataViewListener.cs
- AdPostCacheSubstitution.cs
- DataSourceConverter.cs
- DataControlFieldHeaderCell.cs
- MultiBindingExpression.cs
- HttpCachePolicy.cs
- StoryFragments.cs
- TimeStampChecker.cs
- CultureTable.cs
- DataGridViewRowStateChangedEventArgs.cs
- TranslateTransform3D.cs
- LogReserveAndAppendState.cs
- WebPartCollection.cs
- DataRelation.cs
- XmlDataSourceDesigner.cs
- PkcsUtils.cs
- DateTimeSerializationSection.cs
- ClockGroup.cs
- HtmlPageAdapter.cs
- MenuAdapter.cs
- ZoneIdentityPermission.cs
- TemplateControlParser.cs
- SoapCodeExporter.cs
- XmlSchemaSimpleTypeUnion.cs
- UriParserTemplates.cs
- SpellerStatusTable.cs
- AllMembershipCondition.cs
- RowTypeElement.cs
- UserPreferenceChangingEventArgs.cs
- _LocalDataStoreMgr.cs
- WebScriptEndpointElement.cs
- CommandBinding.cs
- TypeExtensions.cs
- HtmlControlPersistable.cs