C# WinForm application supporting Google Checkout? - c#

I am working on a project where entire application is C# WinForm desktop application. Now our client want to support an action on a form which results in user being charged via his/her Google checkout account. I am wondering if I can provide a checkout interface similar to web browser using windows form or not. If so, How?

have you tried the native winforms WebBrowser control?
The WebBrowser control lets you host Web pages and other browser-enabled documents in your Windows Forms applications. You can use the WebBrowser control, for example, to provide integrated HTML-based user assistance or Web browsing capabilities in your application. Additionally, you can use the WebBrowser control to add your existing Web-based controls to your Windows Forms client applications.
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx

Related

Handle AxHost events designed for WebBrowser (C#)

We've got an ActiveX control that was designed primarily for web browsers (MSN Chat Control), and we've embedded it in our Windows Forms (.Net Core 6) application.
Traditionally, when the ActiveX control is within a web browser, the Chat Control is able to redirect the main page (hosting the frame), open new windows, etc.
It's a long shot, but I'm wondering if anyone is able to suggest how we can capture these for handling within our application?

How to call Windows form from .net web application

i have a windows application and now we want to upgrade it to web application.
Is there any way to use same forms from web application
to avoid duplicate work to develop same page in web application.
i want to open windows form on one click from web form. please provide any sample code if possible.
It's not something you can do automatically. You can reuse your business logic behind the application but you have to write a new UI from scratch. You can also try to use some automated tools but to be honest in most cases you will have to put significant amount of work to get your application working the same as window windows application. You must consider and implement new security policy regarding data transfer/presentation in your web app.
As Adjorem said, simply, no. Even if you find a converter it will probably make a mess and you'll need to do a lot of refactoring.
To open your windows app from web app:
You can register your own url protocol to start your application, e.g myfancyapp.
On your website you can create an href="myfancyapp://...". You can parameterize your windows app through a downloadable file with startup infos.
See:
How do I register a custom URL protocol in Windows?
If you want, you can check, if your app is installed with the help of fonts. Install a font (with a special name) with your app installer. You can then check if font is available on your website and display a message "Please install windows app first".

Testing WPF simple application on multiple web browsers

I'm newbie in WPF/Silverlight world. In the first step , I developed a "Hello world" application and simply run it but the problem is application successfully run only on Internet explorer. When I changed my browser like chrome or firefox etc, application pop up a Save window which means browser unable to understand the filetype. I want to know any plugin required to smothly run my WPF project on different web browsers.
IMO, You are referring to Silverlight and not WPF
WPF Applications are Desktop Applications and they are not made for Browsers.
And Silverlight is cross-platform, across browsers.
You can download and install the plugin from here,
http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx
I think you are looking for Silverlight, not 100% sure tough
WPF browser based application can run in the IE and firefox web browser. One can use silverlight for implementing the WPf browser based application. But silverlight is the small subset of WPF framework. The machine running the WPF web browseer based application must be installed with the .Net runtime environment. WPF web browser based application ideally used for the intranet usages.

How can the Open/Save/Cancel dialog be disabled in a C# .NET application Webbrowser?

When downloadable content/server side scripts give the .NET Webbrowser a downloadable file, a dialog box is opened prompting the user to open/save/cancel the download. How can this window be prevented from appearing/ be disabled?
Thanks in advance.
Note: This is for a custom download manager in a browser I am building.
To take over downloading you need to implement IDownloadManager.
To register your download manager for a webbrowser control instance, you need to implement IServiceProvider on your IOleClientSite implementation and return your download manager when SID_SDownloadManager service is requested.
An example can be found at http://www.codeproject.com/KB/miscctrl/csEXWB.aspx. It is unclear which UI class library you are using, but you can use it in Windows Forms directly or in WPF via Windows Forms Interop.

LDAP in Silverlight applications

We have an existing ASP.NET application in which we use LDAP to fetch the current logged in users' details to display on the web page and perform other actions.
We would like to use LDAP to authenticate and fetch users details in our new Silverlight application too(this application has both a Silverlight front end and a WCF service to feed data) . Is it possible and if so how?
You can't directly interact with LDAP in Silverlight. For that, you must implement a WebService on your web server that will interact with Silverlight. Then in your Silverlight application you will be able to use that Webservice.
Or, if your application is only gonna be used on Windows. You can use WPF to create an XBAP application. That will allow you to use the System.DirectoryServices directly since its using the full .NET framework.

Categories

Resources