views:

32

answers:

2

Hi All;

I have developed an application(downloader) using C# now i want to integrate it to browser like i want to place a button in browsers if user press that button then my app should execute & start downloading the required file.

A: 

I'm largely guessing, but it sounds like you are talking about a "protocol handler", i.e. to handle hyperlinks to "yourapp:some-stuff-here". If so, try looking at Registering an Application to a URL Protocol on MSDN, which gives a C# example of this.

Marc Gravell
please check this link; i want to do exactly this. http://www.codeproject.com/KB/IP/MyDownloader/MyDwnloader10.png
KhanZeeshan
@KhanZeeshan: It's a Browser Toolbar. You have to write an IE Plugin for that.
dbemerlin
ok. can you suggest any tutorial for implementing IE Plugin, i googled it but i was hoping of finding something that will show some code.
KhanZeeshan
@Khan - you mean like the "Download source" button [here](http://www.codeproject.com/KB/IP/MyDownloader.aspx) ? Or indeed the 10+ pages of code explanation in the article itself?
Marc Gravell
KhanZeeshan
@Khan - nobody said it was easy...
Marc Gravell
yeah..nobody does :D
KhanZeeshan
A: 

I don't think that what you want is possible, you can however place a link to the executable and tell your users to execute it via the Browser download options (The Dialog that pops up when you click on some download link that asks wether you want to open oder save the file).

It is not possible to immedatly run your GUI application on a browser button click.

dbemerlin