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
- Win32.cs
- LinkLabelLinkClickedEvent.cs
- NumberSubstitution.cs
- StatusStrip.cs
- XPathNavigatorKeyComparer.cs
- TabControlCancelEvent.cs
- ArgumentsParser.cs
- LogSwitch.cs
- OwnerDrawPropertyBag.cs
- SQLDoubleStorage.cs
- M3DUtil.cs
- ToolStripRenderEventArgs.cs
- MenuCommandService.cs
- FixedPageProcessor.cs
- ScriptDescriptor.cs
- RichTextBoxAutomationPeer.cs
- FormsAuthenticationModule.cs
- DeriveBytes.cs
- CellParagraph.cs
- ComboBox.cs
- Interfaces.cs
- SafeFindHandle.cs
- DataSourceHelper.cs
- TraceSwitch.cs
- DbConnectionPoolGroupProviderInfo.cs
- UIElementAutomationPeer.cs
- DataGridViewCellStyle.cs
- ObjectDataSourceSelectingEventArgs.cs
- WebBrowser.cs
- SizeConverter.cs
- NativeMethods.cs
- VirtualPath.cs
- DSASignatureDeformatter.cs
- SrgsToken.cs
- SpellerStatusTable.cs
- updateconfighost.cs
- SQLInt64.cs
- HMACRIPEMD160.cs
- TaskFileService.cs
- NumberFormatter.cs
- Triplet.cs
- SemaphoreSecurity.cs
- ImageDrawing.cs
- BindValidator.cs
- Set.cs
- ImageFormatConverter.cs
- ToolboxItemImageConverter.cs
- Vector3D.cs
- MetadataSerializer.cs
- SiteMapProvider.cs
- OleDbPropertySetGuid.cs
- ProxyGenerator.cs
- MenuItemBindingCollection.cs
- HttpListenerContext.cs
- XmlSiteMapProvider.cs
- XsdBuilder.cs
- ValueQuery.cs
- BitmapEffectInputData.cs
- QueueTransferProtocol.cs
- PartialCachingControl.cs
- Journal.cs
- CodeEventReferenceExpression.cs
- SqlRowUpdatedEvent.cs
- BidPrivateBase.cs
- CodeDirectiveCollection.cs
- TypeElementCollection.cs
- FigureParagraph.cs
- TextLine.cs
- HttpProfileBase.cs
- IDQuery.cs
- DefaultValidator.cs
- PipelineDeploymentState.cs
- TransformProviderWrapper.cs
- Parser.cs
- BooleanToVisibilityConverter.cs
- ComponentEditorForm.cs
- Itemizer.cs
- WorkflowItemsPresenter.cs
- RunInstallerAttribute.cs
- UrlAuthorizationModule.cs
- ItemMap.cs
- DbParameterHelper.cs
- AppDomain.cs
- SmtpReplyReader.cs
- BCLDebug.cs
- TreeNodeClickEventArgs.cs
- NativeRightsManagementAPIsStructures.cs
- ProjectedWrapper.cs
- DashStyle.cs
- CellParaClient.cs
- XamlStackWriter.cs
- EnumBuilder.cs
- ModelTreeEnumerator.cs
- SchemaTypeEmitter.cs
- DataServiceResponse.cs
- RadioButtonList.cs
- InputScopeConverter.cs
- InvalidFilterCriteriaException.cs
- ColorAnimationUsingKeyFrames.cs
- LabelLiteral.cs