Results 1 to 5 of 5

Thread: gif89.dll/webbrowser control[resolved]

  1. #1

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    Resolved gif89.dll/webbrowser control[resolved]

    Folks

    I just can't get the gif89.dll control to work, pesky little bugger.

    I've read all the tutorials I can lay my mitts on, done everything anyone has so far suggested. And nada. Zip. All I get is the static image, just as I would if I used a poxy image control.

    VB Code:
    1. anigif.filename = "K:\mypath\myimage.gif"
    2. 'have also tried adding:
    3. 'anigif.play
    4. 'although the autostart property is set to true anyway
    5. 'and
    6. 'anigif.embed = true
    7. 'which I saw someone mention in another thread somewheres

    Any suggestions?

    Incidentally, I have tried using the web browser control but don't like how it appears.

    Cheers guys


    Last edited by thebloke; Oct 13th, 2004 at 09:07 AM.
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

  2. #2
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424
    VB Code:
    1. Gif89a1.FileName = "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\Y9ATOF83\pizza_04[1].gif"
    it is working fine. I think u have changed some properties. I suggest u delete that control and drop a new control & leave defaut properties as it is.

  3. #3

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358
    Tried that. Tried placing it on a new application, with nothing else on it, in the form load event. Same thing happens - nothing.

    Also, tried placing it on an Access 2002 form and again, all I get is the static image. I've tried a different image, to see if it is the actual gif that is the problem AND I've tried unregistering the dll and registering it again to see if that helped.

    It didn't.

    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

  4. #4

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358
    Ok, so I've abandoned the gif89.dll method and gone back to the webbrowser control.

    Next question:

    Can I get rid of the border/3d appearance of the webbrowser control? If so, how?

    Cheers

    PW
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

  5. #5

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358
    For those interested:

    I eventually used the webbrowser control and got rid of the 3d appearance by placing the control inside a slighly smaller picturebox container and setting the top/left properties of the webbrowser control to -50, thus:

    VB Code:
    1. with webbrowser1
    2.  
    3. set .container = picture1
    4.  
    5. .top = -50
    6. .left = -50
    7.  
    8. .visible = true
    9.  
    10. .navigate "about:<html><body scroll='no' topmargin='0' leftmargin='0'" & _
    11. " marginwidth='0' marginheight='0' border='0' bgcolor='#E0DFE3'><img src='" & _
    12. "K:\mypath\myimage.gif' border='0'></body></html>"
    13.  
    14. end with

    Works a treat.

    Hope this is useful to someone else.

    Cheers

    PW
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

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