Is there anyway to 'EMBED' a word window inside a form, just look like I have put a textbox inside my form?
Or anybody have some workaround?
Thanks
Printable View
Is there anyway to 'EMBED' a word window inside a form, just look like I have put a textbox inside my form?
Or anybody have some workaround?
Thanks
Use the SetParent api function.
Code:Declare Function SetParent Lib "user32" (ByVal _
hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Sub Command1_Click()
SetParent(Me.hWnd, Form1.hWnd)
End Sub
Matthew,
Can you elaborate the steps?
What do you mean?
Take a look at this thread, it may help.Code:Private Sub Command1_Click()
SetParent Me.hWnd, Form1.hWnd
'SetParent hWndChild, hWndNewParent
End Sub
Thanks Matthew, the thread may be what I am looking for. I will try it.