Option Explicit
Public Const WM_SETTEXT = &HC
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Option Explicit
Private Sub Command1_Click()
SendMessage Me.hwnd, WM_SETTEXT, 0, ByVal CStr(Text1.Text)
End Sub