Results 1 to 4 of 4

Thread: RichTextBox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    77

    Unhappy

    does any one know how would if paste picture in RTB. please tell me the code and littel ditels will be help full. thank you

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    If you simply have a rtb on your form and have copied a picture to the clipboard already then you can just use

    Code:
    clipboard.paste
    As long as you save in rtf format it'll keep the picture.
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  3. #3
    Guest
    there is no "paste" method for the Clipboard. I think you're referring to "GetData" but that will not work.

  4. #4
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    That was my bad. Thanks Megatron However what you can do is copy a picture to the clipboard and then while your app is running and the rtb has focus you can use the ctrl+v keys to paste a picture into the rtb. If you save it as an rtf file then it'll keep the file. You can add a picture using the clipboard object however it'd require you to actually code the rtf file for output and I'm not going to attempt to explain that. But anyway, sorry for the ".paste" thing. I just got off work and was winging it thinking it was there.
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

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