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
- SortDescriptionCollection.cs
- TextClipboardData.cs
- ThemeConfigurationDialog.cs
- TextEffectCollection.cs
- Int32Rect.cs
- AsyncResult.cs
- NonceToken.cs
- PolyLineSegment.cs
- ConfigurationSectionGroup.cs
- ParameterModifier.cs
- ExceptionValidationRule.cs
- AudioException.cs
- SafeNativeMethods.cs
- ParameterCollection.cs
- Underline.cs
- TextTreeText.cs
- FrameworkElement.cs
- ImageUrlEditor.cs
- SR.cs
- MessageQueuePermission.cs
- DataProtection.cs
- Subtract.cs
- HttpContextWrapper.cs
- SafeBitVector32.cs
- _DigestClient.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ImageBrush.cs
- BaseDataList.cs
- OdbcEnvironment.cs
- VariantWrapper.cs
- BatchServiceHost.cs
- UserValidatedEventArgs.cs
- PocoEntityKeyStrategy.cs
- ComboBoxRenderer.cs
- SqlProviderManifest.cs
- TableLayoutColumnStyleCollection.cs
- IIS7WorkerRequest.cs
- DataContractSet.cs
- HtmlTableCell.cs
- IPPacketInformation.cs
- invalidudtexception.cs
- VoiceSynthesis.cs
- CodeDOMUtility.cs
- QilGeneratorEnv.cs
- LowerCaseStringConverter.cs
- GridEntry.cs
- XPathNode.cs
- _SecureChannel.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- HybridDictionary.cs
- PersistenceParticipant.cs
- ScriptControlManager.cs
- RowToFieldTransformer.cs
- Property.cs
- SignatureToken.cs
- SchemaImporterExtensionsSection.cs
- DataGridViewColumnConverter.cs
- datacache.cs
- TripleDES.cs
- UnsafeCollabNativeMethods.cs
- XmlTextReaderImpl.cs
- altserialization.cs
- SafeEventLogWriteHandle.cs
- MsmqReceiveParameters.cs
- TableChangeProcessor.cs
- TypeInformation.cs
- InfoCardAsymmetricCrypto.cs
- SynchronizingStream.cs
- Section.cs
- WebPartUserCapability.cs
- ExceptionUtil.cs
- CodeVariableReferenceExpression.cs
- SubpageParagraph.cs
- SqlUDTStorage.cs
- SmiContextFactory.cs
- CompressedStack.cs
- XmlUtil.cs
- IpcChannel.cs
- _PooledStream.cs
- HttpConfigurationContext.cs
- CodeSubDirectory.cs
- BrowserTree.cs
- CacheSection.cs
- InfoCardBinaryReader.cs
- CalculatedColumn.cs
- VariantWrapper.cs
- ContextDataSourceContextData.cs
- TraceSwitch.cs
- RuntimeConfigLKG.cs
- XamlWriter.cs
- ThemeInfoAttribute.cs
- DataControlPagerLinkButton.cs
- ZipIOExtraFieldElement.cs
- DataContractAttribute.cs
- ControlPropertyNameConverter.cs
- BitmapMetadata.cs
- CapabilitiesAssignment.cs
- FlowLayoutPanel.cs
- NamespaceInfo.cs
- NominalTypeEliminator.cs