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
- ThousandthOfEmRealPoints.cs
- ToolStripDropDown.cs
- StrongNamePublicKeyBlob.cs
- ResXResourceReader.cs
- SessionParameter.cs
- ClockController.cs
- OleAutBinder.cs
- DispatchChannelSink.cs
- ExtentCqlBlock.cs
- JpegBitmapDecoder.cs
- LineInfo.cs
- Compiler.cs
- WorkflowRuntimeServiceElement.cs
- ListControl.cs
- UIElementParagraph.cs
- DebugView.cs
- EntityDesignerDataSourceView.cs
- QueueAccessMode.cs
- GridViewCancelEditEventArgs.cs
- WindowsToolbar.cs
- ValidationRuleCollection.cs
- FixedSOMSemanticBox.cs
- COM2IDispatchConverter.cs
- GlobalAllocSafeHandle.cs
- CommandValueSerializer.cs
- TraceFilter.cs
- Button.cs
- XmlSigningNodeWriter.cs
- DesignerCalendarAdapter.cs
- TypeReference.cs
- ProgressiveCrcCalculatingStream.cs
- CollectionDataContractAttribute.cs
- _ConnectionGroup.cs
- CommentAction.cs
- QueryGeneratorBase.cs
- Filter.cs
- LookupBindingPropertiesAttribute.cs
- ObservableDictionary.cs
- PersonalizationProviderCollection.cs
- DynamicEndpointElement.cs
- QilValidationVisitor.cs
- RoutedPropertyChangedEventArgs.cs
- Function.cs
- KerberosTicketHashIdentifierClause.cs
- CheckBoxStandardAdapter.cs
- ArrangedElement.cs
- webproxy.cs
- ConstructorExpr.cs
- CdpEqualityComparer.cs
- DebuggerAttributes.cs
- CheckedPointers.cs
- DataGridHeaderBorder.cs
- AuthorizationRule.cs
- EntityDataSourceConfigureObjectContext.cs
- FieldDescriptor.cs
- ListBoxItemWrapperAutomationPeer.cs
- CellConstant.cs
- ModuleBuilder.cs
- LineBreakRecord.cs
- AspNetHostingPermission.cs
- FontWeight.cs
- ScriptRegistrationManager.cs
- MappedMetaModel.cs
- Switch.cs
- CacheHelper.cs
- DeploymentSection.cs
- SqlDataSource.cs
- ColorTypeConverter.cs
- LocationEnvironment.cs
- TrackBarRenderer.cs
- DataGridViewImageColumn.cs
- HtmlInputReset.cs
- TextServicesDisplayAttribute.cs
- OleDbCommandBuilder.cs
- ThrowHelper.cs
- StorageInfo.cs
- IncrementalCompileAnalyzer.cs
- TextDecorationUnitValidation.cs
- ParserContext.cs
- TextServicesDisplayAttribute.cs
- SiteMapSection.cs
- DocumentXPathNavigator.cs
- ExpressionEditorSheet.cs
- CommandManager.cs
- MetabaseServerConfig.cs
- AssociativeAggregationOperator.cs
- ActivityDesigner.cs
- OutputCacheSettingsSection.cs
- EpmSyndicationContentSerializer.cs
- CompleteWizardStep.cs
- TextBox.cs
- LifetimeServices.cs
- SchemaTableColumn.cs
- SafeNativeMethods.cs
- NonVisualControlAttribute.cs
- IndexedString.cs
- MemberDomainMap.cs
- SecurityState.cs
- WebDisplayNameAttribute.cs
- Literal.cs