The information in this article applies to:
SUMMARYThis article demonstrates a technique you can use to communicate with your UserDocument running in a WebBrowser control. You can use this technique to pass parameters to your UserDocuments if you are writing an application that has a WebBrowser control in which you display one or more UserDocuments. MORE INFORMATION
You can manipulate the UserDocument by adding Public Properties and Methods
to the UserDocument. You can access these properties and methods from your
WebBrowser application by using the Document property of the WebBrowser
control. The Document property of the WebBrowser control exposes the
Automation object of the currently displayed document.
Step 2: Invoke the property of the currently-running UserDocument using the Document property of the WebBrowser control. From the example above, modify the MYBROWSER project to handle the Click event of the ListBox:
NOTE: You can also use this technique when you display multiple UserDocuments within the WebBrowser control. Be aware that the Document property may not be available immediately after you use the Navigate method of the WebBrowser control. If this is the case, then you can use the Busy property of the WebBrowser control to wait until the browser has finished loading the document. Also, you can use the NavigateComplete event of the WebBrowser control to signal that the document has finished loading. REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base:
Q162719 : HOWTO: Use the WebBrowser Control from Visual Basic 5 Additional query words:
PARAMETERS WEBBROWSER VBD kbinternet kbinetdev kbdsi kbDSupport kbVBp
Keywords : |
Last Reviewed: May 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |