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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -