I have a C# WinForm app with a WebBrowser control on it. I'd like to know if it is possible to add the Google Toolbar to this winform and have it interact with the webbrowser control, specifically for the "Translate" functionality. Is this possible?

有帮助吗?

解决方案

If you want to do translation in your Windows Forms app, then perhaps you should try using a translation API.

Try this - http://googlified.com/unofficial-google-translate-api/

其他提示

Yes the contract between deskband and their host are defined in IE SDK. You just need to implement the same set of contracts like IE does.

However Google Toolbar is known to relay on many undocumented behavior of IE (e.g. somehow it changed the new tab page to speed dial while there is no API exists for that) so you need to simulate IE as much as you can, from Window hierarchy to COM interfaces exposed by objects to default new tab and error pages. I suggest you to contact Google for what you need to do to remain compatible to Google ToolBar, as Google's code revolves rapidly.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top