button click not firing it's method VB.NET -


hello i'm having problem button. when click it, button's not firing method:

  private sub button1_click(sender system.object, e system.eventargs)         'initialize capture device         grabber = new capture()         grabber.queryframe()         'initialize framegraber event         addhandler application.idle, new eventhandler(addressof framegrabber)         button1.enabled = false     end sub 

what missing in here? appreciated. thanks.

there should

private sub button1_click(sender system.object, e system.eventargs) handles button1.click 

or

addhandler button1.click, addressof button1_click 

i suppose vb.net , winforms. vb6 or wpf solution little bit different.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -