Possible Duplicate:
How to reference a website usercontrol in the c# windows application?
I have a c# windows application in which i have 1 .aspx webform. I kept this form because the functionality was possible only on webform.now i want to popup that form on clicking a button in one of the forms. how to do it?
Another Update – I just voted to close one of your other dupe questions which you posted after this one – and then I look through your question list and find this one from yesterday: How to reference a website usercontrol in the c# windows application? which is basically asking the same thing – only slightly differently; I’m just not sure whether to vote to close this one, that one, or delete my answer. Please help us by showing that you listen to us – do not spam us! Please either delete this question, that question – or accept that you’re probably going to have to rewrite the user control
Interesting – almost impossible too – however, how about using the IIS hostable web core as this guy shows in his blog.
MSDN Blog about this
MSDN Walkthrough
Using this you can turn your forms app into a web server as well – in which you can run html, ASPX pages etc as if it was a ‘proper’ web server.
However – I’m not sure how much data is shared between the app and the IIS host – it’s something I’ve been thinking about trying out for a while now but never got round to it.
Edit As @Kragen has pointed out in comments below – the possibility of being able to use this solution is very limited – due to pre-requisites etc.
Ultimately your best bet is going to be to rewrite that page into your form app – definitely for maintainability but even if just from a user’s point of view – I would be seriously wondering why I have to use a web page for some stuff and not for others.