Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Hide and unhide web objects

Hide and unhide web objects

Scheduled Pinned Locked Moved Visual Basic
csharphelplounge
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mhovidz
    wrote on last edited by
    #1

    Good day! I have a problem about hiding and unhiding a web objects in AxWebBrowser using VB.Net. Our teacher's condition are: (1) There must be a command button outside the AxWebBrowser. The command button will generate a random number from 1 to 4. (2) After generating random number it automatically select a value in a listbox inside the AxWebBrowser. (3) Every value of a listbox theres a corresponding control that show and hide the other objects.

    Mark Angelus V. Movida Student

    C C 2 Replies Last reply
    0
    • M mhovidz

      Good day! I have a problem about hiding and unhiding a web objects in AxWebBrowser using VB.Net. Our teacher's condition are: (1) There must be a command button outside the AxWebBrowser. The command button will generate a random number from 1 to 4. (2) After generating random number it automatically select a value in a listbox inside the AxWebBrowser. (3) Every value of a listbox theres a corresponding control that show and hide the other objects.

      Mark Angelus V. Movida Student

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      How do you intend to approach it ? With this sort of thing, often there's more than one way to do something, your teacher will expect you to do it in the way you've been shown. What have you been shown to do in this case ? What have you got working already ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • M mhovidz

        Good day! I have a problem about hiding and unhiding a web objects in AxWebBrowser using VB.Net. Our teacher's condition are: (1) There must be a command button outside the AxWebBrowser. The command button will generate a random number from 1 to 4. (2) After generating random number it automatically select a value in a listbox inside the AxWebBrowser. (3) Every value of a listbox theres a corresponding control that show and hide the other objects.

        Mark Angelus V. Movida Student

        C Offline
        C Offline
        Code_Doctor
        wrote on last edited by
        #3

        There is several ways to approach this. First, get a reference to the Document object within the AxWebBrowser. The best time to get this reference is on the DocumentCompleted event. This will give you access to the underlying objects contained within. You can optionally tie into the eventing of the browser object itself. But you'll need a reference a COM library Microsoft Internet Controls and another one for Microsoft HTML Object Library. With references to these two libraries, you can declare the Document object WithEvents. Assign the Document to local (withevents) variable. Then place code in the event of that variable's event procedures. This techique I've used, and you can ultimately do pre and post processing on any HTML objects that show in the page. In addition, you can gain full control over the Styles used within the HTML. For instance, you can set Styles dynamically on the HTML elements once you gain a reference to them. Lastly, you can gain access to the Window object contained through the reference to the Document object. Then you can detect any of the areas the mouse is over or on. Hope this helps! :) ~ CodeDoctor ~

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups