|
-
Jun 25th, 2000, 11:55 AM
#1
Thread Starter
Lively Member
below I added code from a project I am doing, It puts an image into the clipboard and then pastes it into a richtext control on another program. It works on a form by its self but for some reason it doesnt send or the richcontrol doesnot understand the message that is being sent to it, does anyone have any Ideas on what is wrong?
Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lparam As Long) As Long
Public Const WM_PASTE = &H302
Clipboard.Clear
Clipboard.SetData Picture1.Picture 'Get the Pic
DoEvents
Call PostMessage(TxtBox&, WM_PASTE, 0&, 0& ) 'Send the message to paste the pic in the control TxtBox& is the hwnd of the control and I am sure of that
Thank you,
Jeremy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|