![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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. > 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | Re: Is UserControl The Correct Process? putlib = public... sorry |
My System Specs![]() |