Overlapping in label control text - vb.net -
i'm trying show typical information of program state during runtime in label control. so, label continuously changing. set label text in function control progress bar also:
public sub incrementarprogressbar(byval addvalue integer, byval code string) me.progressbar1.value = me.progressbar1.value + addvalue lblprogressbar.text = code lblprogressbar.refresh() threading.thread.sleep(500) end sub
the problem code
larger others, new label text overlapping old one. , if older label text larger newer, text fraction not covered newer still visible, , don't want it. example how looks when occurs:
the current label text reading secondary species...
, previous text reading thermodynamic parameters...
.
i tried lblprogressbar.text = " "
before assigning code string text label, inelegant , didn't work either.
set form's doublebuffered
property true. should solve such problems.
Comments
Post a Comment