What I want to do seems simple, but I cannot find any reference. I just want to make my Twebbrowser (or any embedded browser or suitable component - for the sake of argument I just use Twebbrowser as an indicator of whatever component I need - the unknown unknowns) the default. The scenario is that when I try to access Dropbox it pops a webpage with the userID/Password, it then pops a webpage with an allow button.
I simply want these webpages to appear in my Twebbrowser and NOT to display an instance of the user default browser (ie. chrome in my case). When I have addressed the two pages I simply want to set the default browser back to whatever it was. Seems simple, but I have no idea how to achieve this. To recap:
- I try to access dropbox through a DLL call
- If my credentials are saved from the previous session the system just progresses
- If my credentials are not saved then Dropbox pops a login webpage (which I want in my Twebbrowser NOT in the user default browser)
- I login and dropbox pops an 'allow access' page (again which I want in my twebbrowser NOT in the user default browser)
- When I am logged in and allowed to access dropbox I want to re-enable the user's default browser
The point is I am not supplying URLs to the Twebbrowser component, the system is generating the activity quite outside my control and based on whether or not specific conditions are met (and I have no way of knowing whether these have been met, for example there may be a session ID and Key, but these could have expired). I have searched the web and cannot find anything likely. I am no expert, but I would have thought a property like ...Make this default... would be useful. It is probably something really simple, but I cannot figure it out.
Any help would be appreciated.