Jump to content
Xtreme .Net Talk

bgerby

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by bgerby

  1. I actually solved my last issue on my own. I'm not sure how good a fix it is, but it works. I set a global boolean variable that tells me whether to do the UCOMIConnectionPointContainer stuff in the AxWebBrowser1_DocumentComplete function. Once, I load the first doc, I change the boolean variable so I only do it once and that seems to work. It actually makes senses to me now too. If this seems off-base, let me know.
  2. Events being called as many times as pages loaded I have a strange issue now. If I load one page, I can capture event such as a click or a an onkeydown. Only 1 event is fired. But, if I load one page after another (I am calling Me.AxWebBrowser1.Navigate2(strUrl) where strUrl is the url to load a new page), the new document loads, but now all of my events are doubled. So, if i capture the onclick event, it acts as if it is clicking on the new document and the old document. If I load 10 pages, I get 10 events. It is as if I need to dispose of the first document before I load a new one. But, I have tried a number of things and cannot get the original document to be gone so I only have 1 event. Is Navigate2 the wrong function to load a document? I have tried Navigate. vsdotnet or other To see an example of this, add "AxWebBrowser1.GoHome()" to the onclick event of the sample vsdotnet posted. You will see now the listbox starts to exponentially add more items. Gotta love this stuff. I am sure there is an easy solution, but not easy for me I guess. Thanks in advance.
  3. vsdotnetguy, Thank you so much. That works perfectly. I thought I had tried everything, but I guess not. Hope I can return the favor.
  4. Same issue as mooman_fl mooman_fl or anyone else, Has anyone found a solution. I can capture document events using addHandler, but I cannot then return focus to the browser so it can act normally. In a nutshell, I want to capture the event when someone makes a selection.
×
×
  • Create New...