|
-
Feb 28th, 2002, 06:52 AM
#1
Thread Starter
New Member
About RichTextbox...
Hello. I am a user of your program, RichTextBox, and I've found an inquiry
using it. So I would be highly obliged if you kindly give me some tips to
solve my trouble.
My simple question is this: I would like to put pictures together with
written letters. In doing so, I couldn't arrange letters aligned with the
picture. For example, when my picture is much bigger than a few lines of
letters, I could not put numerous lines of letters between or beside a big
picuture. I need to put as many lines of letters as the width of a picture,
like it is done in MS word program. How can I make it with your program?
I hope to hear your comment on it as soon as possible.
Thanks for your attention to my inquiry.
Sincerely,
-
Feb 28th, 2002, 06:53 AM
#2
VB 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
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
|