Code:
/ FX-1434 / FX-1434 / 1.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
- ImageAutomationPeer.cs
- IsolatedStorageFilePermission.cs
- DataGridViewButtonColumn.cs
- SocketPermission.cs
- TextElementCollection.cs
- _NetworkingPerfCounters.cs
- DragStartedEventArgs.cs
- ErrorFormatter.cs
- ContentElement.cs
- DefaultAuthorizationContext.cs
- StorageModelBuildProvider.cs
- RoutedEventHandlerInfo.cs
- Point3DConverter.cs
- SQLCharsStorage.cs
- PropertyTabAttribute.cs
- DefaultValidator.cs
- MenuRendererClassic.cs
- MyContact.cs
- DataSourceProvider.cs
- AuthorizationContext.cs
- HttpCachePolicy.cs
- QilTargetType.cs
- Task.cs
- CustomGrammar.cs
- TypeUtil.cs
- PersonalizationState.cs
- TextEffect.cs
- UserControlDesigner.cs
- HtmlTableRowCollection.cs
- ElementMarkupObject.cs
- SafeMILHandle.cs
- SecurityListenerSettingsLifetimeManager.cs
- processwaithandle.cs
- UnionCqlBlock.cs
- SynchronizedPool.cs
- ZoneButton.cs
- QueryRewriter.cs
- ScriptIgnoreAttribute.cs
- FontStretchConverter.cs
- OleCmdHelper.cs
- SectionInput.cs
- ListViewAutomationPeer.cs
- SoapExtension.cs
- KeyedPriorityQueue.cs
- RelationshipManager.cs
- MetadataArtifactLoader.cs
- BatchServiceHost.cs
- OleDbParameterCollection.cs
- SqlDataSourceStatusEventArgs.cs
- GridToolTip.cs
- CurrencyManager.cs
- EventLogLink.cs
- XmlToDatasetMap.cs
- XamlGridLengthSerializer.cs
- DetailsViewPagerRow.cs
- BamlResourceSerializer.cs
- Bitmap.cs
- XpsPartBase.cs
- SmtpMail.cs
- WebPartUserCapability.cs
- TargetParameterCountException.cs
- AggregateNode.cs
- RawUIStateInputReport.cs
- RsaSecurityToken.cs
- WebPartCloseVerb.cs
- CommentAction.cs
- mda.cs
- TreeViewEvent.cs
- AssemblyHash.cs
- XsltInput.cs
- XsltLoader.cs
- DataServiceRequest.cs
- RuleValidation.cs
- LinearGradientBrush.cs
- MailHeaderInfo.cs
- PropertyPathConverter.cs
- SearchForVirtualItemEventArgs.cs
- FormsAuthentication.cs
- ByteAnimation.cs
- PropertyInfoSet.cs
- GregorianCalendarHelper.cs
- WeakEventTable.cs
- SystemIPInterfaceProperties.cs
- PersistenceIOParticipant.cs
- TableCellCollection.cs
- MergeFailedEvent.cs
- DataSourceSelectArguments.cs
- Wildcard.cs
- CustomAttributeBuilder.cs
- MethodBody.cs
- LinqDataSourceDisposeEventArgs.cs
- DataGridViewImageCell.cs
- remotingproxy.cs
- Empty.cs
- TreeView.cs
- OletxVolatileEnlistment.cs
- OraclePermissionAttribute.cs
- MemberMemberBinding.cs
- CallbackHandler.cs
- ConditionCollection.cs