how insert animated images on Richtextbox?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: how insert animated images on Richtextbox?

  1. #1
    Join Date
    Apr 2009
    Posts
    1,132

    how insert animated images on Richtextbox?

    how insert animated images on Richtextbox?
    i can paste the images using clipboard and SendMessage() with WM_PASTE(i'm using windows 7). but the images pasted aren't animated. just copy the 1st frame. can anyone advice me?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    18,944

    Re: how insert animated images on Richtextbox?

    Maybe this article: https://www.codeproject.com/Articles...-which-can-dis - will give you some ideas ofwhat would the problem and how to fix it / implement what you need.
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2009
    Posts
    1,132

    Re: how insert animated images on Richtextbox?

    that project just add controls:
    Code:
    private void button2_Click(object sender, EventArgs e)
            {
                openFileDialog1.Filter = "Image files(*.jpg,*.gif,*.bmp,*.png)|*.jpg;*.gif;*.bmp;*.png";
                if (openFileDialog1.ShowDialog() == DialogResult.OK)
                {
                    Image theImage = Image.FromFile(openFileDialog1.FileName);
                    if (!Trestan.Utility.isImageCorrupted(theImage))
                    {
                        PseudoHeaderLine();
                        PictureBox thePic = new PictureBox();
                        thePic.Image = theImage;
                        thePic.Size = theImage.Size;
                        this.richTextBox1.AddControl(thePic);
                    }
                    else
                    {
                        MessageBox.Show("Say something.");
                    }
                }
            }
    the big problem is the controls don't be embed.
    what you can tell me more?

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    18,944

    Re: how insert animated images on Richtextbox?

    Nothing...
    Just try to search for...
    Victor Nijegorodov

  5. #5
    Join Date
    Apr 2009
    Posts
    1,132

    Re: how insert animated images on Richtextbox?

    maybe... maybe i found something:
    https://www.codeproject.com/Articles...-in-a-ListView

  6. #6
    Join Date
    Apr 2009
    Posts
    1,132

    Re: how insert animated images on Richtextbox?

    that link is confused for i convert it from C# to VB 2010.
    do you know any link for use API OLE for insert controls on richtextbox?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)