vb.net - handled is not a member of Eventargs -


i inherited vb.net code , newbie vb.net programmer old programming skills.

this problem exists in many places after calling dialog box. after processing dialog, if enter key pressed on dialog instead of clicking ok, enter key logic processed on main form. undesirable , need display form.

it looks "e.handled = true" may way clear key results, produces "handled not member of eventargs" error.

can please recommend best way handle situation?

thank you,

brian

private sub mnuabout_click(byval sender system.object, byval e system.eventargs) handles mnuabout.click      try         'get menu off of screen cleanly         application.doevents()          dlgabout.showdialog()         **e.handled = true**      catch ex exception         call moderrorhandler.errorprocedure(ex.gettype.name, me.name, ex.message, exceptionclassname(ex), exceptionmethodname(ex), exceptionlinenumber(ex))     end try  end sub 


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -