双击树节点,将其添加到ListBar中

private Infragistics.Win.UltraWinListBar.UltraListBar ultraListBar1;

private void InitializeComponent()
  {
......
// ultraListBar1
   //
   this.ultraListBar1.Groups.Add(group1);
   this.ultraListBar1.Location = new System.Drawing.Point(8, 8);
   this.ultraListBar1.Name = "ultraListBar1";
......
}


 private void treeView1_DoubleClick(object sender, System.EventArgs e)
  {
   Infragistics.Win.UltraWinListBar.Item item1 = new Infragistics.Win.UltraWinListBar.Item();
   item1.Text=treeView1.SelectedNode.Text.ToString();
   group1.Items.Add(item1);
 
  }

你可能感兴趣的:(list)