Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser Control / Treeview Conflict
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Web Browser Control / Treeview Conflict
Miscellaneous
Thread ID:
00642295
Message ID:
00642295
Views:
55
Hello,

I've found a successful workaround to the following problem. I am hoping that someone out there can tell me WHY it works:

I have a top-level form with 2 browser controls and a treeview, all on different pages of a pageframe. The browser controls intercept the BeforeNavigate2 event and run method code in the form.

Everything would work fine, until I fired off code which changed values in the treeview control. For some reason, the the browser controls would lose all ability to navigate; i.e. any hyperlinks clicked would pass blank parameters to the BeforeNavigate2 event. Re-populating or refreshing the browser controls did not fix the problem, and in fact ALL browser controls on other active forms would be affected the same way as well.

I found one fix, which was to instantiate a messagebox. This would restore the browsers' state, but obviously it's not a practical solution whilst navigating through an application.

I tried every fix or alternative offered here and other places, but none of them worked. Then by trial and error, I found that if I did this....
loTree.Nodes(1).text = "Something"
loTree.Nodes(2).text = "Something Else"

** and then put in this line...
select mytable
...everything worked. If I select any table after the code, it works. Can someone tell me what selecting a table does to correct this behaviour???

MR
(p.s. sorry for the long post...)
Next
Reply
Map
View

Click here to load this message in the networking platform