Results 1 to 7 of 7

Thread: Fading images?

  1. #1
    Cheeko
    Guest

    Fading images?

    Can anyone give me some code that would fade my image from invisible to normal and vice versa?

    I have a gif on my form and want it to fade in on the click of a button or when the form loads etc..

    Or is there a tutorial on it somewhere?

    Cheeko

  2. #2
    Cheeko
    Guest
    Anyone?

  3. #3
    Cheeko
    Guest
    Is this possible or would I have to fade it as an animation in fireworks first?

  4. #4
    Frenzied Member Robbo's Avatar
    Join Date
    Jan 2001
    Location
    Bradford
    Posts
    1,143
    One way you could do this is by editing a few copys of the image/gif and when you want it to change write a bit of code to swap the gifs etc, like a walking man u could do two gifs and on a timer change one form the other
    -----------------------------------------------
    "The hall is rented,"
    "the orchestra is engaged,"
    "its now time to see if you can dance!"
    Q, Q-Who, Star Trek The Next Generation
    -----------------------------------------------
    General Work day

    -----------------------------------------------
    DOS, Win 95, Win 98 SE, Win ME, Win NT 4.0 SP6a, Windows 2000 SP3, Window XP SP1, Windows 7, Windows 8/8.1, Windows 10, Office 97 Pro, Office 2000 Pro, Office 2010, Office 2013, Office 2016, Office 2019, Visual Basic 6 (SP5), SQL, Oracle

  5. #5
    Cheeko
    Guest
    Cheers for the feedback, il look a bit harder

  6. #6
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Orlando
    Posts
    392

    Two Methods

    The easy way:
    Create an Animated Gif the does the fade in thing. Use an Animated Gif viewer control to display the file. There are quite a few freeware animated gif controls available on the web.

    The Hard Way:
    Visit www.vbaccelerator.com somewhere on that site, there is an example of the use a Logical Bitmap (or something like that) to fade out an image. This is a more flexible method and will let you fade out or fade in any image. However, it is complicated.
    Abu Haider
    ____________________________
    100% Data Validation for the MS DataGrid Control. Plus Support for Custom and Foreign Lists, DatePicker and much more...
    The DataGridEnhancer


    I often point to a place where the problem has been discussed, instead of giving you the code that solves it. This is for good, may be you will understand some day...

  7. #7
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Mark
    -------------------

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