c# - Control not visible even ctrl.Visible = true -


i use following code (c#, net4) update visibility of label (its not visible):

task.factory.startnew(() =>             {                 this.begininvoke(new action(() =>                 {                     lbnumberimages.visible = true;                 }));             }).         continuewith             ((task) =>                 {                     try                     {                         task.wait();                     }                     catch (aggregateexception ae)                     {                         messagebox.show(ae.innerexception.message);                         }));                     }                 }); 

if form visible label gets visible. if form not visible label remains hidden when form gets visible. wrong code?

the code called - if set breakpoint on line 'lbnumberimages.visible = true;' debugger stops.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -