Results 1 to 14 of 14
  1. #1
    Join Date
    Jun 2002
    Location
    Kansas City
    Posts
    103

    Unanswered: Form Fade (In/Out)

    I'm trying to utilize some code (in my 2003 Access database) I came across at:

    http://www.pacificdb.com.au/MVP/Code/FormFade.htm

    courtesy of MS Access MVP Graham R Seach that will create a fade in/fade out effect on a form - very cool!

    After creating the module, adding the open and close events to the form, and setting the form properties as specified, my form only fades out - 50% there!

    The VBA is a little over my head, so I can't determine what I've missed. I'm hoping someone might be familiar with this effect or possibly be able to assist.

    Thanks in advance for taking your time to review!

  2. #2
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    I love this kind of stuff! I've actually got a collection of all kinds of different form manipulation stuff (including the form fade in/out) that I've collected and posted in the code bank here: http://www.dbforums.com/showpost.php...9&postcount=51

    I believe the code is different to that on the website you supplied (I quickly tried it but I didn't really look at it that close.) But check out what I posted in the code bank - there's some stuff there you wouldn't dream of thinking MSAccess could actually do (I especially like the translucent form and button effects.)

    I think you'll like some of the neat stuff there and you may find some other neat things you'll like.
    Last edited by pkstormy; 12-21-07 at 18:25.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  3. #3
    Join Date
    Jun 2002
    Location
    Kansas City
    Posts
    103
    Wow, an early X-mas gift! Thanks so much. I dropped those two sample forms plus the relivant code in a test database and it fades in/out. The translucent form is also something I can definitely make use of. Again, thanks for the prompt reply!

  4. #4
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Enjoy and remember if you come across anything new, please post it or send me a PM. I like to collect this kind of stuff.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  5. #5
    Join Date
    Jun 2002
    Location
    Kansas City
    Posts
    103
    One last thing........have you been able to alter the speed at which the opacity fades in/out? I was trying to scan thru the code, but haven't found that variable.

  6. #6
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Form-fading! Coool! Another one to add to the list of cool trinkets for Access
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  7. #7
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Quote Originally Posted by JamesB
    One last thing........have you been able to alter the speed at which the opacity fades in/out? I was trying to scan thru the code, but haven't found that variable.
    I'm guessing the form's timer event (or some other timer type code) could possibly be used but I haven't really experimented with altering the speed. I'll see if I can test out some code but I can't gaurantee anything.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  8. #8
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    it's just a loop.
    fadeIn() as posted has
    For i = 1 To opacity Step 2
    try 1 (slower) 4 (faster)

    izy
    currently using SS 2008R2

  9. #9
    Join Date
    Jun 2009
    Posts
    4

    Mr

    how can i specify the Height and width?? thanks in advance

  10. #10
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Me.InsideHeight
    Me.InsideWidth

    IIRC
    Testimonial:
    pootle flump
    ur codings are working excelent.

  11. #11
    Join Date
    Jun 2009
    Posts
    4
    wow this is cool!!! replay is so fast, thanks

  12. #12
    Join Date
    Jun 2009
    Posts
    4
    how can i reduce the opacity

  13. #13
    Join Date
    Jun 2009
    Posts
    4
    how can i reduce the opacity?

  14. #14
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    check in the documentation in the module. There's a setting (documented somewhere in the module) that you can change.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

Posting Permissions

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