• 大小: 0.30M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-05-02
  • 语言: C#
  • 标签: 控件    

资源简介

c#控件,带列的树控件,可以显示多列,保留树形结构。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace CommonTools
{
public class FloatComboBox : NameobjectComboBox
{
}
public class NameobjectComboBox : System.Windows.Forms.ComboBox
{
CommonTools.NameobjectCollection m_items = new CommonTools.NameobjectCollection();
public new CommonTools.NameobjectCollection Items
{
get { return m_items; }
set
{
m_items = value;
DataSource = m_items;
}
}
public new CommonTools.Nameobject SelectedItem
{
get { return base.SelectedItem as CommonTools.Nameobject; }
set { base.SelectedItem = value; } 
}
public NameobjectComboBox()
{
DisplayMember = “Name“;
ValueMember = “object“;
}
protected override void OnLeave(EventArgs e)
{
if (DataBindings.Count > 0)
DataBindings[0].WriteValue();
base.OnLeave(e);
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2008-02-19 21:15  TreeTestApp\Docs\
     目录           0  2008-02-19 21:18  TreeTestApp\TreeTestApp\
     目录           0  2008-02-19 21:17  TreeTestApp\TreeTestApp\bin\
     目录           0  2008-02-19 21:17  TreeTestApp\TreeTestApp\bin\Release\
     文件      131072  2008-02-19 21:16  TreeTestApp\TreeTestApp\bin\Release\CommonTools.dll
     文件       45056  2008-02-19 21:16  TreeTestApp\TreeTestApp\bin\Release\TreeTestApp.exe
     文件        3894  2008-02-05 07:00  TreeTestApp\TreeTestApp\bitmapstrip.bmp
     文件       12653  2008-02-16 19:14  TreeTestApp\TreeTestApp\FolderView.cs
     文件        3360  2008-02-06 20:17  TreeTestApp\TreeTestApp\FolderView.Designer.cs
     文件        5814  2008-02-06 20:22  TreeTestApp\TreeTestApp\FolderView.resx
     文件         905  2008-02-16 12:23  TreeTestApp\TreeTestApp\Form1.cs
     文件        5014  2008-02-16 12:23  TreeTestApp\TreeTestApp\Form1.Designer.cs
     文件        6184  2008-02-16 12:23  TreeTestApp\TreeTestApp\Form1.resx
     文件         300  2008-02-17 07:31  TreeTestApp\TreeTestApp\Form2.cs
     文件        1744  2008-02-17 07:31  TreeTestApp\TreeTestApp\Form2.Designer.cs
     文件        5814  2008-02-17 07:31  TreeTestApp\TreeTestApp\Form2.resx
     文件         591  2008-02-05 07:00  TreeTestApp\TreeTestApp\Program.cs
     目录           0  2008-02-05 07:00  TreeTestApp\TreeTestApp\Properties\
     文件        1270  2008-02-05 07:00  TreeTestApp\TreeTestApp\Properties\AssemblyInfo.cs
     文件        2503  2008-02-05 07:00  TreeTestApp\TreeTestApp\Properties\Resources.Designer.cs
     文件        5612  2008-02-05 07:00  TreeTestApp\TreeTestApp\Properties\Resources.resx
     文件        1018  2008-02-05 07:00  TreeTestApp\TreeTestApp\Properties\Settings.Designer.cs
     文件         249  2008-02-05 07:00  TreeTestApp\TreeTestApp\Properties\Settings.settings
     文件        2567  2008-02-16 19:13  TreeTestApp\TreeTestApp\TestTree.cs
     文件        5526  2008-02-16 19:14  TreeTestApp\TreeTestApp\TestTreeForm.cs
     文件        5509  2008-02-16 08:10  TreeTestApp\TreeTestApp\TestTreeForm.Designer.cs
     文件        5814  2008-02-16 08:10  TreeTestApp\TreeTestApp\TestTreeForm.resx
     文件        5306  2008-02-17 07:49  TreeTestApp\TreeTestApp\TreeTestApp.csproj
     文件        1915  2008-02-17 08:03  TreeTestApp\TreeTestApp\TreeTestAutoSize.cs
     文件        3437  2008-02-17 07:49  TreeTestApp\TreeTestApp\TreeTestAutoSize.Designer.cs
     文件        5814  2008-02-17 07:49  TreeTestApp\TreeTestApp\TreeTestAutoSize.resx
............此处省略55个文件信息

评论

共有 条评论