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
- DataGridViewTextBoxCell.cs
- OleDbParameterCollection.cs
- Trigger.cs
- DbParameterCollectionHelper.cs
- DataGridViewCheckBoxCell.cs
- ImportCatalogPart.cs
- Page.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- COM2PropertyPageUITypeConverter.cs
- SHA256CryptoServiceProvider.cs
- InternalControlCollection.cs
- ProviderSettingsCollection.cs
- AbandonedMutexException.cs
- WebConfigurationHost.cs
- CodeStatement.cs
- XmlTextReaderImpl.cs
- SimpleWebHandlerParser.cs
- XmlNotation.cs
- SByteStorage.cs
- BezierSegment.cs
- InfoCardBinaryReader.cs
- CheckBoxAutomationPeer.cs
- WebPartMenuStyle.cs
- TextOptions.cs
- ASCIIEncoding.cs
- LinqDataView.cs
- TextTreeExtractElementUndoUnit.cs
- BCLDebug.cs
- StreamWithDictionary.cs
- EntityDataSourceContainerNameItem.cs
- NativeMethods.cs
- remotingproxy.cs
- XamlTreeBuilderBamlRecordWriter.cs
- InternalControlCollection.cs
- LocalFileSettingsProvider.cs
- PseudoWebRequest.cs
- CodeExpressionStatement.cs
- SslStream.cs
- SoapSchemaMember.cs
- CodeNamespaceImport.cs
- Certificate.cs
- WorkflowDispatchContext.cs
- XmlSerializerVersionAttribute.cs
- TempFiles.cs
- PageRanges.cs
- ConnectionAcceptor.cs
- AccessControlEntry.cs
- CharacterMetricsDictionary.cs
- ApplicationInfo.cs
- VoiceInfo.cs
- LinearGradientBrush.cs
- HttpPostedFile.cs
- UIPropertyMetadata.cs
- SqlCharStream.cs
- UrlPath.cs
- PropertyHelper.cs
- CheckBoxField.cs
- FixedSOMPageElement.cs
- PreloadHost.cs
- SQLInt32.cs
- StructuredProperty.cs
- UnionCodeGroup.cs
- UpdatePanelTrigger.cs
- peersecurityelement.cs
- WindowsTooltip.cs
- CodeNamespace.cs
- SafeLibraryHandle.cs
- RowVisual.cs
- BitmapEffectInputConnector.cs
- DesignerHelpers.cs
- LineGeometry.cs
- RectangleHotSpot.cs
- PageAsyncTaskManager.cs
- MessageFault.cs
- DirectionalAction.cs
- PopupEventArgs.cs
- CombinedGeometry.cs
- ThreadAttributes.cs
- AutomationElementCollection.cs
- TextPattern.cs
- CodeEventReferenceExpression.cs
- PersistChildrenAttribute.cs
- BamlCollectionHolder.cs
- ComPersistableTypeElementCollection.cs
- TextUtf8RawTextWriter.cs
- DetailsView.cs
- PeerResolverSettings.cs
- QueryContext.cs
- ClientBuildManagerCallback.cs
- HtmlControlPersistable.cs
- ObjectPersistData.cs
- ParenthesizePropertyNameAttribute.cs
- _FtpControlStream.cs
- DBBindings.cs
- CrossAppDomainChannel.cs
- TransformDescriptor.cs
- EdmError.cs
- QueuePathDialog.cs
- DocumentSequenceHighlightLayer.cs
- ContentHostHelper.cs