Try thisVB Code:
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Private Const WM_PASTE = &H302 Private Sub Command1_Click() 'To Paste Picture From PictureBox/Clipboard to Rich Text Box 'Note: Will not work with Icons (.Ico files) It does work with BitMaps and Metafiles Clipboard.Clear Clipboard.SetData Picture1.Picture SendMessage RichTextBox1.hwnd, WM_PASTE, 0, 0 End Sub




Reply With Quote