hi can any one please send ,first i select an item to combobox it will be displayed in tree
view next if select the same item it will not add repaetedly.if we add different then it will
added to treeview

for adding a selected combo item in tree view following is the line of code,

"Me.TreeView1.Nodes.Add(Me.ComboBox1.Text)"

To avoid duplicate addition you need to check that before adding the item to the tree view.

hi,
try creating a different key for each node u create.i think that will work.key should be unique in treeview nodes.

Me.TreeView1.Nodes.Add(Me.ComboBox1.Text & i)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.