de este codigo C#
Código C#:
Ver original
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using System.Drawing.Drawing2D; using System.Diagnostics; using System.Text; namespace ToolBx { [ToolboxItem(true)] [ToolboxBitmap(@"ToolBoxBmp")] public partial class ToolBox : TreeView { #region Local classes public class TBTreeNode : TreeNode { #region Private fields private string mToolTipCaption; private bool mOnEdit; private bool mEnabled; #endregion #region Public properties public string ToolTipCaption { get { return this.mToolTipCaption; } set { this.mToolTipCaption = value; } } public bool OnEdit { get { return this.mOnEdit; } set { this.mOnEdit = value; } } public bool Enabled { get { return this.mEnabled; } set { this.mEnabled = value; } } #endregion #region Constructor / Destructor public TBTreeNode() : base() { this.mToolTipCaption = string.Empty; this.mOnEdit = false; this.mEnabled = true; } #endregion } #endregion