Link to home
Start Free TrialLog in
Avatar of masterpoe
masterpoe

asked on

View source command using the WebBrowser control

How can I add a command to a menu to View Source of the current document in the WebBrowser control? The control doesn't seem to expose any methods for doing so. However, you can right-click on the control and a popupmenu will give you this option. I want to implement the same functionality, but from my own menu. One possible answer would be to get a handle on the Document property of the control and, using this, somehow get the HTML from the page and open that text with the default txt app. Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of jjmartin
jjmartin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of masterpoe
masterpoe

ASKER

works for me. are there other actions that you can call from the addressbar?