vb.net - Threads: Multiple BeginInvoke(Sub() ...) -> programming style; Are tasks better? -


i have made litte programm. has plenty of such lines:

    me.begininvoke(sub() me.groupbox1.visible = false)     me.begininvoke(sub() me.txtverfahrensbezeichnungvalue.visible = false) 

are there better ways because of variables pointing gui style element?

i tried (but failed):

    dim = new {         me.groupbox1.visible = false         me.txtverfahrensbezeichnungvalue.visible = false         }     me.begininvoke(a) 

try this:

me.begininvoke(sub()         me.groupbox1.visible = false         me.txtverfahrensbezeichnungvalue.visible = false     end sub) 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -