RadioButtonDesigner.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / RadioButtonDesigner.cs / 1 / RadioButtonDesigner.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

/* 
 */ 
namespace System.Windows.Forms.Design {
    using System; 
    using System.Collections;
    using System.ComponentModel;
    using System.ComponentModel.Design;
    using System.Design; 
    using System.Drawing;
    using System.Windows.Forms; 
    using System.Diagnostics; 

    ///  
    /// 
    ///    
    ///       Provides a designer that can design components
    ///       that extend ButtonBase. 
    /// 
    internal class RadioButtonDesigner: ButtonBaseDesigner { 
 

        public override void InitializeNewComponent(IDictionary defaultValues) { 
           base.InitializeNewComponent(defaultValues);

           // In Whidbey, default the TabStop to true.
           PropertyDescriptor prop = TypeDescriptor.GetProperties(Component)["TabStop"]; 
           if (prop != null && prop.PropertyType == typeof(bool) && !prop.IsReadOnly && prop.IsBrowsable) {
               prop.SetValue(Component, true); 
           } 

       } 

    }
}
 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK