vb.net - rad menu , check if item text exists -
using telerik , radmenu, know how check if item exists text
my menu contains text "menu1"
if use menu.finditembytext("menu1").enabled = false
disable button
but
if use menu.finditembytext("menutest").enabled = false
exception button not exist.
how stop error?
i tried below cant return booloen
if menu.finditembytext("menutest") 'do end if
try this:
if not(menu.finditembytext("menutest") nothing) 'do end if
Comments
Post a Comment