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
Post a Comment