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
- CatalogPart.cs
- CultureTableRecord.cs
- CodeMemberField.cs
- InternalConfigRoot.cs
- HyperLink.cs
- DiscoveryInnerClientAdhocCD1.cs
- PathFigure.cs
- MultiTrigger.cs
- mda.cs
- JsonReaderWriterFactory.cs
- CalendarDay.cs
- Hashtable.cs
- DurableInstanceProvider.cs
- LockCookie.cs
- CodeAttributeDeclarationCollection.cs
- UndirectedGraph.cs
- CultureInfoConverter.cs
- MasterPageParser.cs
- SmtpTransport.cs
- XmlSchemaElement.cs
- FacetChecker.cs
- GenericUriParser.cs
- RegexRunnerFactory.cs
- CustomErrorsSection.cs
- _BaseOverlappedAsyncResult.cs
- ConfigurationSettings.cs
- ErrorWebPart.cs
- DeferredBinaryDeserializerExtension.cs
- ButtonBaseAdapter.cs
- ContainerUtilities.cs
- HttpProtocolImporter.cs
- wmiprovider.cs
- VoiceSynthesis.cs
- RegexParser.cs
- odbcmetadatafactory.cs
- X509KeyIdentifierClauseType.cs
- srgsitem.cs
- RuntimeHelpers.cs
- SendKeys.cs
- AssemblyBuilderData.cs
- EntityCommandExecutionException.cs
- RootBrowserWindowAutomationPeer.cs
- KeyInfo.cs
- TextContainerChangeEventArgs.cs
- ContentValidator.cs
- ScalarType.cs
- CharacterHit.cs
- _NestedMultipleAsyncResult.cs
- BrowserDefinitionCollection.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XmlTypeAttribute.cs
- RelatedImageListAttribute.cs
- PagerSettings.cs
- ControlOperationBehavior.cs
- HtmlShimManager.cs
- TemplatedMailWebEventProvider.cs
- EntityDataSourceSelectingEventArgs.cs
- ExpressionLexer.cs
- CompiledRegexRunner.cs
- CompoundFileReference.cs
- HttpEncoder.cs
- PersonalizationStateQuery.cs
- HeaderPanel.cs
- CommandID.cs
- FragmentNavigationEventArgs.cs
- PropertyKey.cs
- ClientTarget.cs
- RequestCachePolicyConverter.cs
- ServiceNotStartedException.cs
- ParserExtension.cs
- iisPickupDirectory.cs
- ToolStripDropDownButton.cs
- EncryptedHeader.cs
- RecognizedAudio.cs
- CodeArgumentReferenceExpression.cs
- CompoundFileIOPermission.cs
- ConnectionConsumerAttribute.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- PropertyChangeTracker.cs
- x509utils.cs
- HttpClientCertificate.cs
- Misc.cs
- EditorZoneBase.cs
- SafeProcessHandle.cs
- XmlRawWriterWrapper.cs
- HandlerWithFactory.cs
- StyleXamlTreeBuilder.cs
- DataGridHeaderBorder.cs
- ProxyManager.cs
- ToolboxItem.cs
- TagMapInfo.cs
- InputElement.cs
- TransportContext.cs
- Semaphore.cs
- Int32Rect.cs
- Page.cs
- RelationshipConverter.cs
- ToolStripContainer.cs
- MultiSelectRootGridEntry.cs