vb.net - menustrip menu dropdown items names appear blank in msgbox -


i have on form load add items menu dropdown item.

from within same sub try output menustrip dropdown items in msgbox blank response items.

private sub populateloadchildmenu()     msitemload.dropdownitems.clear()     dim fi fileinfo     if directory.getfiles(_playlistpath).length > 1         msitemload.enabled = true     end if      each fi in _files         msitemload.dropdownitems.add(path.getfilenamewithoutextension(_playlistpath & fi.name))     next      each mymenuitem toolstripmenuitem in msitemload.dropdownitems         txblist.text = txblist.text & ", " & mymenuitem.tag     next  end sub 

i use in sub this

private sub formload(byval sender system.object, byval e system.eventargs) handles mybase.load     dim fi fileinfo     msitemload.enabled = false     if directory.getfiles(_playlistpath).length = 1         each fi in _files             loadplaylist(_playlistpath & fi.name)         next     end if     populateloadchildmenu()  end sub 

looking @ code using tag property(if not explicitly setting data there adding nothing textbox):

txblist.text = txblist.text & ", " & mymenuitem.tag 

are meaning using text property

txblist.text = txblist.text & ", " & mymenuitem.text 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -