According the the Language Reference manual, refreshing a form or control happens automatically when VB's idle loop is reached. This demo shows the effect of explicitly using Refresh on a dynamically changing control.
cmbDemo_Click
According the the Visual Basic Language Reference manual, refreshingg
a form or control happens automatically when VB's idle loop is reached.
In this example I have created a situation to demonstrate
the effects of using or not using Refesh on a control
(a text box) while it repetitively changes in width..
I have created two similar controls on the form. One text box changes
without using Refresh and one changes with Refresh on each change.n
It looks like Refresh is not necessary when decreasing the width of a
text box control. It actually causes jitter in the redrawn image.n
But Refresh is needed to see the effects of repetitively increasing
the width of the text box. Without Refresh, the text box doesn't
display with its' correct width until the repetitive changes have