Hi,


What's the best way of integrating a Paypal button in a WinForms application?

I can make a tiny WebBrowser and render the form html in it, but when clicking it, processing should be done by the default browser, not the WebBrowser in my application.


LEdit:

Or I could just use a picture of the button and redirect the user when clicking it.

Would this work for you? This will open the specified website in the user's default browser.

System.Diagnostics.Process.Start("http://www.daniweb.com/");

Adding to WildBamaBoy's suggestion, you could add a button, set its foreground to be the image of a "standard" PayPal web button, and when you click it call the code WildBamaBoy posted, obviously substituting paypal for daniweb.

What did I say ?!

Or I could just use a picture of the button and redirect the user when clicking it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.