#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    33
    Rep Power
    12

    How to “Bring to the Front” an animated GIF?


    How to “Bring to the Front” an animated GIF?

    What command do I need to have an animated GIF be positioned on top or in front of a PictureBox, right now it is playing behind the PictureBox

    Andy

    Thanks

    Code:If Not myBMP Is Nothing Then
    ImageAnimator.UpdateFrames(myBMP)
    Dim tmpBMP As New Bitmap(myBMP, myBMP.Width, myBMP.Height)
    tmpBMP.MakeTransparent(tmpBMP.GetPixel(0, 0))
    e.Graphics.DrawImage(tmpBMP, myImagePosition)
    tmpBMP.Dispose()
    End If
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    I believe it is the zorder of the image you need to set to 0 (zero)
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    33
    Rep Power
    12
    Onslaught:

    Where can I fing that zorder property?

    Andy
  6. #4
  7. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    it should be an available option of the control
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    33
    Rep Power
    12
    Onslaught:

    zorder property belongs to VB6

    In VB.NET it was replaced by "Sent to Back" and "Sent to Front".

    I tried this with the image that is interfering and nothing happened the GIF animation is still playing behind the picturebox.

    I really need some serious help.


    Andy
  10. #6
  11. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    1) you should have specified .net when posting this thread
    and
    2) you should have posted in the .net forum

    This thread has been moved.

IMN logo majestic logo threadwatch logo seochat tools logo