Results 1 to 4 of 4

Thread: [2008] GIF doesn't work?

  1. #1

    Thread Starter
    Lively Member mahammad()'s Avatar
    Join Date
    Jun 2008
    Location
    Cairo , Egypt
    Posts
    71

    Question [2008] GIF doesn't work?

    Hi , all

    I am working on project that need to insert GIF pictures in RichTextBox but the GIF doesn't work or move!
    this is the code i used
    vb Code:
    1. Dim data As DataObject
    2. data = Clipboard.GetDataObject
    3. Clipboard.Clear()
    4. Clipboard.SetImage(Image.FromFile("D:\image.gif"))
    5. document.Paste()
    6. Clipboard.SetDataObject(data)
    so What's the problem?

    help me please
    thanks in advance

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] GIF doesn't work?

    So you're saying that it's an animated GIF that doesn't animate in the RTB, correct? It may well be that the RTB doesn't support animation. It is a text control, after all. What happens if you insert the same image into a document in WordPad? What happens if you put the same Image in a PictureBox?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member mahammad()'s Avatar
    Join Date
    Jun 2008
    Location
    Cairo , Egypt
    Posts
    71

    Re: [2008] GIF doesn't work?

    Quote Originally Posted by jmcilhinney
    What happens if you insert the same image into a document in WordPad? What happens if you put the same Image in a PictureBox?
    didn't work too! , but What to do ? . anyway to make it work in RTB?

    thanks

  4. #4
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    617

    Re: [2008] GIF doesn't work?

    jm says use PICTUREBOX instead.

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