Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / HScrollBar.cs / 1 / 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
- SqlVisitor.cs
- PartialArray.cs
- DesignerHierarchicalDataSourceView.cs
- WindowsBrush.cs
- ExtractorMetadata.cs
- RegexCapture.cs
- TableProvider.cs
- Nullable.cs
- FormatterConverter.cs
- HtmlContainerControl.cs
- StateMachineWorkflowDesigner.cs
- DataQuery.cs
- _IPv4Address.cs
- SortedList.cs
- RequestCacheEntry.cs
- SqlConnectionStringBuilder.cs
- TraceLevelStore.cs
- TextTreeObjectNode.cs
- ExpandCollapsePattern.cs
- DupHandleConnectionReader.cs
- X509Certificate2.cs
- IpcClientManager.cs
- NullableBoolConverter.cs
- PipelineModuleStepContainer.cs
- MappedMetaModel.cs
- PatternMatcher.cs
- CustomAttributeFormatException.cs
- OperationResponse.cs
- ThreadTrace.cs
- ResponseBodyWriter.cs
- WindowsListViewItemCheckBox.cs
- AQNBuilder.cs
- Bits.cs
- CornerRadius.cs
- OleDbPermission.cs
- PublisherMembershipCondition.cs
- SystemKeyConverter.cs
- MenuBase.cs
- RootDesignerSerializerAttribute.cs
- VirtualizingStackPanel.cs
- PrintingPermissionAttribute.cs
- FillBehavior.cs
- IriParsingElement.cs
- DateTimeFormatInfo.cs
- ToolbarAUtomationPeer.cs
- TableDetailsRow.cs
- MULTI_QI.cs
- OciHandle.cs
- PageSettings.cs
- VerificationAttribute.cs
- CachedPathData.cs
- ColorConvertedBitmap.cs
- MessageBuilder.cs
- thaishape.cs
- BooleanToVisibilityConverter.cs
- SerializationException.cs
- TemplateNodeContextMenu.cs
- ClientSettingsSection.cs
- DataControlImageButton.cs
- CharacterBuffer.cs
- HitTestFilterBehavior.cs
- TimeoutHelper.cs
- BitmapEffect.cs
- Message.cs
- IpcClientChannel.cs
- WebEventCodes.cs
- ArrayConverter.cs
- MouseWheelEventArgs.cs
- StylusShape.cs
- SqlUtils.cs
- Console.cs
- HttpWebRequest.cs
- IsolatedStorageSecurityState.cs
- SingleStorage.cs
- CalloutQueueItem.cs
- ToolStripContainerDesigner.cs
- DefaultValueTypeConverter.cs
- SmiTypedGetterSetter.cs
- DeviceContexts.cs
- DBConnectionString.cs
- CrossSiteScriptingValidation.cs
- Metadata.cs
- NetPipeSectionData.cs
- OrderByBuilder.cs
- Convert.cs
- TextSelectionHelper.cs
- SctClaimSerializer.cs
- DesignUtil.cs
- EntityCommandExecutionException.cs
- Root.cs
- WebPartsSection.cs
- DesignerInterfaces.cs
- TextElementCollection.cs
- SafeProcessHandle.cs
- FrameDimension.cs
- ImageSource.cs
- ResourceSetExpression.cs
- VirtualDirectoryMapping.cs
- DataGridViewIntLinkedList.cs
- ReachDocumentPageSerializer.cs