VB 6 webbrowser problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dennijr
    New Member
    • May 2007
    • 17

    #1

    VB 6 webbrowser problems

    sry its long, questions in the last sentance if u wanna jump to it. i just decided that i would include everything that led up to the problem

    i made a gif video that i wanted to put into a program, and i couldnt figure out how to get it into VB6. finally i found out that the Microsoft Internet Control would play the gif file if i located it with "webbrowser1.na vigate" for example, so i did this. i decided it was working fine and the way i wanted it to, so i tryed to put this form into my actual program, but when i clicked on add form, from file and browsed for the form, when i tried to open it, it said error, then it closed and finished adding the form. after i linked my program to the form i just added with the videos, i tried to play the program to see if it worked, but when i did, it said error again, and said that the reason was because it couldnt find some .dll file of which the webbrowser control needed to run, then when i closed the error, it closed my program. from here i tried to get it to work with just the one form by itself again, and the same error came up when i tried to load the webbrowser control, so that wouldnt even load. then i tried to load the control in a completely new program, and once again it wouldnt load. i did some reading up about the webbrowser control, and found out that in order for it to properly work, the user must have a working version of internet explorer, and of course i did, as that was what i was using to find this information. SO, i closed internet explorer and used mozilla firefox to go to microsoft's website and redownload IE7. the download started and removed my version if internet explorer, restarted my computer and finished the installation, rebooted again and said it was now working. so i went back to VB6 and tried to use the webbrowser control again, and it actually loaded, BUT...

    relating to my actual question, the webbrowser control now doesnt have a .navigate option, why is this??help would be greatly apreaciated.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by dennijr
    ... the webbrowser control now doesnt have a .navigate option, why is this??help would be greatly apreaciated.
    Hello, dennijr!

    I run IE7 and I have no problems. .Navigate stays in place. Here's a bit of code I stumbled upon recently, runs fine here:

    Code:
    Private Sub Form_Load()
    Dim loc As String
    Dim Source As String
    loc = App.Path & "\image.gif"
    Picture1.Visible = False
    Picture1.AutoSize = True
    Picture1.Picture = LoadPicture(loc)
    Animation.Width = Picture1.Width
    Animation.Height = Picture1.Height
    Source = "about:" & "<html>" & "<body leftMargin=0 topMargin=0 marginheight=0 marginwidth=0 scroll=no>" & "<img src=""" & loc & """></img></body></html>"
    Animation.Navigate Source
    End Sub
    Do you know if your IE frame is corrupted? You may consider adding your code to forum for a closer look.

    Sorry for your troubles!

    Dököll
    Last edited by Dököll; May 29 '07, 11:16 PM. Reason: Deleted text

    Comment

    • dennijr
      New Member
      • May 2007
      • 17

      #3
      Thanks Much
      3 things tho, first, what component do i use to get "animation.widt h"etc, and im not sure if IE corrupted or not, i think it might have been, but then i reinstaled it, so it should be working now, atleast it can find the correct file source now, im wondering if its maybe vb webbrowser control thats become corupted. theres definately nothing wrong with the code, theres basicly no code to mess up when it's its own solitary program, its just that my webbrowser control's navigate option doesnt exist anymore... that i can find...

      Comment

      • dennijr
        New Member
        • May 2007
        • 17

        #4
        hahaha, nevermind, its me thats corrupted...i just realized that when i tried to bring the information over, it transferd all of my webbrowsers to pictureboxes, but it still called them "webbrowser 1". its really dum, cause it didnt just make the one the pic box, it made all of my saves pic boxes... =S

        Comment

        • Dököll
          Recognized Expert Top Contributor
          • Nov 2006
          • 2379

          #5
          Originally posted by dennijr
          hahaha, nevermind, its me thats corrupted...i just realized that when i tried to bring the information over, it transferd all of my webbrowsers to pictureboxes, but it still called them "webbrowser 1". its really dum, cause it didnt just make the one the pic box, it made all of my saves pic boxes... =S
          Happens to the best of us:-)

          I use the Paint application (Start - All Programs -Accessories - Paint)

          If you hover on a pic file and look to your bottom right you'll see the coords there. Also, on your menu - Image - Attributes, give it to ya...Good luck with the project!

          Good of you to tell us what happened, it's nice...

          Comment

          Working...