.net - Control query is not correct in DotNet -
please help, receive error "cannot invoke because object nothing". i've added query ask if object nothing. visual studio still goes routine.
private withevents frm frmfullscreen private sub updateimageinguiasync(byval bm system.drawing.bitmap) if me.frm.invokerequired = true dim dl new bitmapdelegate(addressof updateimageinguiguithread) if me.frm isnot nothing me.frm.invoke(dl, bm) else call me.updateimageinguiguithread(bm) end if end sub
any idea how fix this?
regards
is possible form disposing?
if so, i'd wrap entire if block in try/catch.
Comments
Post a Comment