views:

95

answers:

1

I have a class which inherits System.Windows.Forms.Form. I need to make the form available via a Web browser. The form currently allows a graph to be generated given various parameters. So embedding it directly in a web page would be ideal for my needs.

How would I go about doing this?

Thanks.

+3  A: 

What you are after is XBAP, this allows you to do exactly what you want - embed a Windows Forms application within a browser.

What you do is reference your WinForms application (once compiled as a class library) from a WPF Browser Application.

The WPF Browser Application (a .xbap) can then be embeded as shown below in an iFrame:

<iframe src="WPFHost.xbap" width="329" height="443" />

See http://www.xbap.org/ or MSDN for more information - there are also several good tutorials available on the webs.

David Hall
I'll check this out. If you're right, then you are amazing. Thank SO MUCH for this info!
Laran Evans