Is UserControl The Correct Process?

D

Derek Hart

I have written a Winforms application that is a standalone desktop
application that works with SQL Server. Another software company wants to
embed my Winforms application inside a window in their software. Should I
create a WPF User Control Library and try to turn my application into a
UserControl, much like an ActiveX control? Is this the best method, or am I
missing some simpler way of doing this?

Also, is the WPF User Control Library the project to use? I am using Visual
Studio 2008.
 
P

PvdG42

Derek Hart said:
I have written a Winforms application that is a standalone desktop
application that works with SQL Server. Another software company wants to
embed my Winforms application inside a window in their software. Should I
create a WPF User Control Library and try to turn my application into a
UserControl, much like an ActiveX control? Is this the best method, or am
I missing some simpler way of doing this?

Also, is the WPF User Control Library the project to use? I am using
Visual Studio 2008.
If your current application is a Windows Form app, and is not WPF, have you
considered Windows Forms Control Library?

What type of application does the other company have that they want to embed
your application in? That consideration would also partially drive your
decision. I suggest you discuss specifics with the other company first, and
proceed from there.
 
E

Eusebiu

Hello...
As PvdG42 said... it depends of host-application's technology.
If the host application is a Windows Forms application, the only thing you
must do is to make putlib the objects inside your application that you want
the host to use.
If the host application is a WPF application, you have to create
UserControls in your application and import them inside the host application
using <WindowsFormsHost> element (you have to create a xmlns:ctrls="..." to
link the host to your application).
If the host application is a MFC application, have a look at this :
http://msdn.microsoft.com/en-us/library/ahdd1h97(VS.80).aspx

For all types of applications, you have to import all settings inside your
application config file inside the host's config file(like connection
strings, settings...)

Hope it helps...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top