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
- SqlBuilder.cs
- TextSimpleMarkerProperties.cs
- BooleanFunctions.cs
- TargetControlTypeCache.cs
- VariableDesigner.xaml.cs
- PermissionSetTriple.cs
- AnnotationComponentManager.cs
- RequestResponse.cs
- CodeDirectionExpression.cs
- Renderer.cs
- TextElementEnumerator.cs
- ThreadAttributes.cs
- PageRequestManager.cs
- PhoneCall.cs
- PerformanceCounterPermission.cs
- Thread.cs
- Control.cs
- BehaviorEditorPart.cs
- PropertyEntry.cs
- FreezableCollection.cs
- MaskedTextBox.cs
- Point3DAnimation.cs
- KnownBoxes.cs
- AttributeEmitter.cs
- AxisAngleRotation3D.cs
- CodeSpit.cs
- TableItemPattern.cs
- XPathDocumentBuilder.cs
- SerializationStore.cs
- PartitionResolver.cs
- ControlDesigner.cs
- WebPartEditorOkVerb.cs
- PrintingPermissionAttribute.cs
- Array.cs
- AttributeEmitter.cs
- RunWorkerCompletedEventArgs.cs
- IInstanceContextProvider.cs
- ListViewUpdateEventArgs.cs
- TdsParserStaticMethods.cs
- EditorPart.cs
- DrawingVisual.cs
- HelpPage.cs
- XPathEmptyIterator.cs
- ModelProperty.cs
- ImplicitInputBrush.cs
- PageCache.cs
- HttpBufferlessInputStream.cs
- StandardMenuStripVerb.cs
- mongolianshape.cs
- HtmlMeta.cs
- DbProviderServices.cs
- UInt16Converter.cs
- SchemaNotation.cs
- MeshGeometry3D.cs
- PipeStream.cs
- PackageRelationship.cs
- XmlSerializerVersionAttribute.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DataGridBoolColumn.cs
- StateChangeEvent.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- MetadataArtifactLoader.cs
- NotificationContext.cs
- PageSetupDialog.cs
- SecurityContext.cs
- Decimal.cs
- StringBlob.cs
- ListControl.cs
- HostedImpersonationContext.cs
- RecordManager.cs
- UrlMappingCollection.cs
- DoWorkEventArgs.cs
- SortedList.cs
- DbMetaDataColumnNames.cs
- SingleAnimationBase.cs
- PackageRelationshipCollection.cs
- ValidationEventArgs.cs
- XmlWrappingWriter.cs
- DbConnectionPoolCounters.cs
- TableStyle.cs
- XPathNavigator.cs
- SettingsSection.cs
- EmptyEnumerable.cs
- ToolStripContentPanelDesigner.cs
- PersistChildrenAttribute.cs
- SerializableAuthorizationContext.cs
- Point3DValueSerializer.cs
- AsmxEndpointPickerExtension.cs
- QueryAccessibilityHelpEvent.cs
- Size3D.cs
- AsymmetricSignatureFormatter.cs
- RegexCode.cs
- UserControlDocumentDesigner.cs
- ObfuscationAttribute.cs
- XmlReader.cs
- OleServicesContext.cs
- ConsumerConnectionPoint.cs
- ToolBarOverflowPanel.cs
- OperationResponse.cs
- LockedHandleGlyph.cs