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
- PluralizationServiceUtil.cs
- MenuStrip.cs
- FixedTextContainer.cs
- MarkupExtensionParser.cs
- BezierSegment.cs
- FrameworkElement.cs
- KoreanLunisolarCalendar.cs
- ObjectTag.cs
- ClickablePoint.cs
- ConfigurationManagerHelperFactory.cs
- SimpleParser.cs
- figurelengthconverter.cs
- GraphicsState.cs
- TemplateParser.cs
- RoamingStoreFile.cs
- DataPager.cs
- QilParameter.cs
- SmiXetterAccessMap.cs
- NameValueConfigurationCollection.cs
- FloaterParagraph.cs
- ListViewTableRow.cs
- SafeNativeMethods.cs
- HashCryptoHandle.cs
- StringSource.cs
- AxisAngleRotation3D.cs
- Margins.cs
- ManipulationPivot.cs
- Separator.cs
- PartBasedPackageProperties.cs
- RSAPKCS1SignatureFormatter.cs
- AffineTransform3D.cs
- FamilyMapCollection.cs
- StylusPlugInCollection.cs
- DataControlFieldHeaderCell.cs
- BooleanFunctions.cs
- PagedControl.cs
- TagMapInfo.cs
- XmlUrlEditor.cs
- ToolStripItem.cs
- ClientSponsor.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ExtenderProvidedPropertyAttribute.cs
- XmlSchema.cs
- WithStatement.cs
- Message.cs
- FilterException.cs
- TemplateBindingExtension.cs
- ObjectPersistData.cs
- OrderedDictionary.cs
- RectConverter.cs
- _TLSstream.cs
- XAMLParseException.cs
- LambdaCompiler.Lambda.cs
- HwndAppCommandInputProvider.cs
- HtmlControlDesigner.cs
- PropertyPath.cs
- COM2Enum.cs
- SecurityUtils.cs
- LicenseException.cs
- TextTreeDeleteContentUndoUnit.cs
- MetadataItem.cs
- SerializationStore.cs
- RectAnimationBase.cs
- SmiGettersStream.cs
- MimeMultiPart.cs
- EdmError.cs
- BitmapEffectOutputConnector.cs
- Environment.cs
- XmlObjectSerializer.cs
- Compress.cs
- StreamReader.cs
- FocusChangedEventArgs.cs
- XmlSerializationReader.cs
- MonikerUtility.cs
- SmtpLoginAuthenticationModule.cs
- XmlDocumentFragment.cs
- SettingsPropertyNotFoundException.cs
- XmlLinkedNode.cs
- ServiceNameElementCollection.cs
- DebugView.cs
- xml.cs
- DataGridPagerStyle.cs
- RelatedView.cs
- SessionStateContainer.cs
- TypeReference.cs
- XmlCompatibilityReader.cs
- HelloMessageCD1.cs
- SecUtil.cs
- ElementMarkupObject.cs
- EntityDesignerDataSourceView.cs
- XmlCDATASection.cs
- Int32CollectionConverter.cs
- TreeIterator.cs
- ParameterBinding.cs
- Filter.cs
- safelinkcollection.cs
- InputScopeConverter.cs
- _SpnDictionary.cs
- IntegrationExceptionEventArgs.cs
- ThumbButtonInfoCollection.cs