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