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
- TextEndOfLine.cs
- MultiDataTrigger.cs
- SafeProcessHandle.cs
- SingleResultAttribute.cs
- SqlProfileProvider.cs
- XmlSchemaSimpleContentRestriction.cs
- MailWriter.cs
- sqlstateclientmanager.cs
- FileDialog_Vista.cs
- ConfigUtil.cs
- MappingException.cs
- FrameworkElementFactory.cs
- LocalValueEnumerator.cs
- NativeMethodsOther.cs
- EventManager.cs
- DependencyProperty.cs
- RSAOAEPKeyExchangeFormatter.cs
- ZipArchive.cs
- Effect.cs
- controlskin.cs
- IgnoreFileBuildProvider.cs
- DataBoundLiteralControl.cs
- SqlFactory.cs
- XPathNavigatorReader.cs
- CatalogPart.cs
- Int32Rect.cs
- Ticks.cs
- HttpApplication.cs
- unitconverter.cs
- RegexWriter.cs
- HitTestFilterBehavior.cs
- ReadOnlyDataSource.cs
- AppDomainUnloadedException.cs
- QilXmlReader.cs
- CompilationUtil.cs
- xmlsaver.cs
- InstancePersistenceContext.cs
- Run.cs
- SelectionListDesigner.cs
- GroupDescription.cs
- SmtpReplyReader.cs
- OracleNumber.cs
- StructuredTypeEmitter.cs
- DisplayInformation.cs
- SerializationBinder.cs
- RoleManagerModule.cs
- StateMachineSubscriptionManager.cs
- DrawingCollection.cs
- TextParagraph.cs
- UpdateTracker.cs
- SafeLibraryHandle.cs
- Regex.cs
- WebRequest.cs
- BamlTreeMap.cs
- FastPropertyAccessor.cs
- ListViewTableRow.cs
- ExtentCqlBlock.cs
- TypeInitializationException.cs
- FixedFlowMap.cs
- SerialPort.cs
- SoapExtensionReflector.cs
- TextFormatter.cs
- XmlStringTable.cs
- bindurihelper.cs
- TextFormatterHost.cs
- CompiledRegexRunnerFactory.cs
- DrawingBrush.cs
- WorkflowServiceAttributes.cs
- HttpMethodAttribute.cs
- KeyToListMap.cs
- Mappings.cs
- PointAnimation.cs
- ConversionHelper.cs
- DatePickerTextBox.cs
- AttachedAnnotationChangedEventArgs.cs
- ProviderCommandInfoUtils.cs
- RouteParametersHelper.cs
- IndentedWriter.cs
- TraceSource.cs
- ObjectSecurity.cs
- CollectionEditVerbManager.cs
- VisualBrush.cs
- SessionStateItemCollection.cs
- RSACryptoServiceProvider.cs
- GuidelineSet.cs
- PageParser.cs
- CommonDialog.cs
- PixelFormatConverter.cs
- BinaryConverter.cs
- Compress.cs
- WmpBitmapEncoder.cs
- ClosableStream.cs
- ScriptHandlerFactory.cs
- JavaScriptString.cs
- ServiceParser.cs
- XmlSchemaDatatype.cs
- WinEventHandler.cs
- FillErrorEventArgs.cs
- GridViewColumnHeaderAutomationPeer.cs
- ISO2022Encoding.cs