|
-
Jun 22nd, 2006, 01:30 PM
#1
Thread Starter
Member
[RESOLVED] User Defined type not defined error due to StdPicture
Please help. I am using the clipboard to paste an image into a richtextbox. I have found some documentation on how to achieve this but I am unable to compile.
Here is the code I have:
Public Sub InsertPictureInRichTextBox(RTB As RichTextBox, Picture As StdPicture) 'Here is where I receive the error due to Picture as StdPicture
Clipboard.Clear
Clipboard.SetData Picture
SendMessage RTB.hwnd, WM_PASTE, 0, 0
End Sub
Private Sub Form_Load()
Open AnalFileName$ For Output As #1
Print #1, "This is a test of Text above a graphic"
InsertPictureInRichTextBox AnalOutput.Out, "C:\Documents and Settings\Owner\Desktop\strakeInWindTunnel.bmp"
Print #1, "This is TEXT BELOW the graphic"
Close #1
AnalOutput.Out.LoadFile AnalFileName$, 1
End Sub
Thanks in advance for your help.
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
|