Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / TabControlToolboxItem.cs / 1 / TabControlToolboxItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.Design { using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Drawing.Design; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; [Serializable] [SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses")] internal class TabControlToolboxItem : ToolboxItem{ public TabControlToolboxItem() : base (typeof(TabControl)) { } [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] private TabControlToolboxItem(SerializationInfo info, StreamingContext context) { Deserialize(info, context); } protected override IComponent[] CreateComponentsCore(IDesignerHost host) { IComponent[] components = base.CreateComponentsCore(host); Debug.Assert(components != null && components.Length > 0, "TabControlToolboxItem failed to create component."); Debug.Assert(components.Length == 1, "TabControlToolboxItem did not create the correct number of components."); Debug.Assert(components[0] is TabControl, "TabControlToolboxItem did not create a control."); if (components != null && components.Length > 0 && components[0] is TabControl) { TabControl tabControl = (TabControl) components[0]; tabControl.ShowToolTips = true; } return components; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MeasurementDCInfo.cs
- WaveHeader.cs
- SynchronizationScope.cs
- Binding.cs
- StringUtil.cs
- recordstate.cs
- DataGridViewCellEventArgs.cs
- BufferedReadStream.cs
- StyleSheet.cs
- ContextMenu.cs
- AuthorizationContext.cs
- CodeBlockBuilder.cs
- FontDriver.cs
- IItemContainerGenerator.cs
- AutomationPattern.cs
- assertwrapper.cs
- DataGridViewColumnHeaderCell.cs
- InsufficientMemoryException.cs
- CompositeDataBoundControl.cs
- GroupBox.cs
- CodeAttributeArgumentCollection.cs
- PersonalizationProviderHelper.cs
- UserPreferenceChangedEventArgs.cs
- PersianCalendar.cs
- CaseInsensitiveOrdinalStringComparer.cs
- XmlTextAttribute.cs
- Monitor.cs
- SettingsProperty.cs
- SHA384.cs
- Button.cs
- FigureHelper.cs
- TableHeaderCell.cs
- MissingManifestResourceException.cs
- SchemaImporterExtensionElement.cs
- LabelTarget.cs
- ScaleTransform3D.cs
- DataObjectFieldAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- ThicknessKeyFrameCollection.cs
- HttpValueCollection.cs
- Message.cs
- FontFamilyIdentifier.cs
- SerializableAuthorizationContext.cs
- XDeferredAxisSource.cs
- Thread.cs
- FilteredAttributeCollection.cs
- ActivityScheduledRecord.cs
- Enlistment.cs
- DebugManager.cs
- Padding.cs
- CachedPathData.cs
- ViewManager.cs
- AssociatedControlConverter.cs
- DataGridViewColumnCollection.cs
- TextServicesCompartmentEventSink.cs
- DynamicAttribute.cs
- Visual3D.cs
- _NtlmClient.cs
- Vars.cs
- ToolboxItemFilterAttribute.cs
- InternalConfigConfigurationFactory.cs
- HatchBrush.cs
- Touch.cs
- XmlQueryType.cs
- Cast.cs
- LinkConverter.cs
- AliasExpr.cs
- FixedTextBuilder.cs
- ColumnWidthChangedEvent.cs
- MemberMemberBinding.cs
- UriTemplateEquivalenceComparer.cs
- shaper.cs
- LogRecordSequence.cs
- WorkflowItemPresenter.cs
- SettingsPropertyCollection.cs
- XmlSchemaSimpleTypeUnion.cs
- Operand.cs
- FormattedText.cs
- Assembly.cs
- SchemaExporter.cs
- NameScopePropertyAttribute.cs
- InvalidateEvent.cs
- ServiceOperationParameter.cs
- WebConfigurationHost.cs
- SqlConnectionPoolProviderInfo.cs
- OutgoingWebRequestContext.cs
- Constants.cs
- EventLogInternal.cs
- SmiRequestExecutor.cs
- PlaceHolder.cs
- LogicalMethodInfo.cs
- IssuanceLicense.cs
- ModuleConfigurationInfo.cs
- RectangleGeometry.cs
- RectangleConverter.cs
- StorageModelBuildProvider.cs
- _SafeNetHandles.cs
- EncryptedType.cs
- InheritanceContextChangedEventManager.cs
- ProviderCommandInfoUtils.cs