could someone tell me how to manipulate another richtextbox that doesn't belong to my program (without using sendkeys)?

i.e. i know the hWnd of the "target" richtextbox (richedit), and i would like to change the target's properties such as .text etc...?

i presume it would be something like


Dim objTarget as TextBox

objTarget.hWnd = target.hWnd

objTarget.Text = "text..."


thanx.