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: enter image description here

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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -