DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   IT Professionals' Lounge (http://www.daniweb.com/forums/forum5.html)
-   -   add item from combobox to treeview (http://www.daniweb.com/forums/thread98634.html)

malleswarareddy Nov 27th, 2007 2:15 pm
add item from combobox to treeview
 
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

Alekhan Feb 18th, 2008 4:46 pm
Re: add item from combobox to treeview
 
for adding a selected combo item in tree view following is the line of code,

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

debasisdas Feb 26th, 2008 8:57 am
Re: add item from combobox to treeview
 
To avoid duplicate addition you need to check that before adding the item to the tree view.

uma625010 May 19th, 2008 5:51 am
Re: add item from combobox to treeview
 
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)


All times are GMT -4. The time now is 6:21 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC