Results 1 to 2 of 2

Thread: About RichTextbox...

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    2

    Lightbulb 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,

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. 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
    2.  
    3. Private Const WM_PASTE = &H302
    4.  
    5. Private Sub Command1_Click()
    6. 'To Paste Picture From PictureBox/Clipboard to Rich Text Box
    7. 'Note:  Will not work with Icons (.Ico files)  It does work with BitMaps and Metafiles
    8.     Clipboard.Clear
    9.     Clipboard.SetData Picture1.Picture
    10.     SendMessage RichTextBox1.hwnd, WM_PASTE, 0, 0
    11. 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
  •  



Click Here to Expand Forum to Full Width