add item from combobox to treeview

Reply

Join Date: Nov 2007
Posts: 2
Reputation: malleswarareddy is an unknown quantity at this point 
Solved Threads: 0
malleswarareddy malleswarareddy is offline Offline
Newbie Poster

add item from combobox to treeview

 
0
  #1
Nov 27th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 43
Reputation: Alekhan is an unknown quantity at this point 
Solved Threads: 4
Alekhan Alekhan is offline Offline
Light Poster

Re: add item from combobox to treeview

 
0
  #2
Feb 18th, 2008
for adding a selected combo item in tree view following is the line of code,

"Me.TreeView1.Nodes.Add(Me.ComboBox1.Text)"
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,068
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 123
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: add item from combobox to treeview

 
0
  #3
Feb 26th, 2008
To avoid duplicate addition you need to check that before adding the item to the tree view.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 3
Reputation: uma625010 is an unknown quantity at this point 
Solved Threads: 0
uma625010 uma625010 is offline Offline
Newbie Poster

Re: add item from combobox to treeview

 
0
  #4
May 19th, 2008
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)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the IT Professionals' Lounge Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC