To prevent your textbox flickering when you add new lines always ensure the total string height is greater than the height of the textbox.


E.g Create flicker fix string

VB Code:
  1. Dim flicker_fix as String
  2. Const MAX_ROWS=50
  3.  
  4. For a = 0 To MAX_ROWS
  5.    flicker_fix = flicker_fix & vbCrLf
  6. Next

always append this string to the end of your string you wish to add

E.G

VB Code:
  1. Dim a as Long
  2. Dim new_msg as String
  3.  
  4. For a = 0 to 20
  5.    new_msg=new_msg & "More lines" & str(a) & vbCrLf
  6.    text1.text = new_msg & flicker_fix
  7. Next

This is only an example, obviously you would not write the code like this, but you get the idea.

I have used this where the LockWindowApi was not suitable.

Cheers

Rick