Results 1 to 4 of 4

Thread: Pictures In A Rich Text Box

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    How can i put pictures into a rich text box?

    Steve

  2. #2
    New Member
    Join Date
    Sep 1999
    Posts
    2

    Post

    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

    then place this code to command1_click():
    Clipboard.Clear
    Clipboard.SetData Picture1.Picture
    SendMessage RichTextBox1.hwnd, WM_PASTE, 0, 0

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    Wow thanks, that works great!

    Steve

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    is there a way to do it without using the clipboard?

    Thanks!

    Tom

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