Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Is UserControl The Correct Process?

Reply
 
Old 02-20-2009   #1 (permalink)
Derek Hart


 
 

Is UserControl The Correct Process?

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.






My System SpecsSystem Spec
Old 02-20-2009   #2 (permalink)
PvdG42


 
 

Re: Is UserControl The Correct Process?


"Derek Hart" <derekmhart@xxxxxx> wrote in message
news:ev5D#W4kJHA.5920@xxxxxx
Quote:

> 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.

My System SpecsSystem Spec
Old 02-21-2009   #3 (permalink)
Eusebiu


 
 

Re: Is UserControl The Correct Process?

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/libr...97(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...
My System SpecsSystem Spec
Old 02-21-2009   #4 (permalink)
Eusebiu


 
 

Re: Is UserControl The Correct Process?

putlib = public... sorry
My System SpecsSystem Spec
Reply

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46