Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2008

Tip: Looking for answers? Try searching our database.

WPF apps using .NET 2.0 assemblies?   Can it be done?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eljainc - 09 Feb 2008 04:06 GMT
Hello,

I am writing some basic WPF applications using VS 2005 with the WPF
extensions. I am building a specific WPF application which uses WPF
Windows (not Winforms). I notice that .NET 2.0 components cannot be
used on these forms. Is there any way to shoehorn the .NET 2.0
components on to a WPF form?  If I had the source code to these
assemblies, could they be published to a .NET 3.0/3.5 assembly so that
it would work on the WPF Window?

Thanks.
Mike
RobinS - 13 Feb 2008 19:10 GMT
I'm not 100% sure, but I think you can combine WinForms and WPF Windows in
the same application, but I don't think you can interchange the controls.
You might want to post this question in the MSDN Forum for WPF.

RobinS.
GoldMail, Inc.
-----------------------------------------
> Hello,
>
[quoted text clipped - 8 lines]
> Thanks.
> Mike
Damien - 14 Feb 2008 08:48 GMT
> Hello,
>
[quoted text clipped - 8 lines]
> Thanks.
> Mike

Hi Mike,

Have you looked at the WindowsFormsHost from
System.Windows.Forms.Integration? It lets you put the WinForms
controls inside WPF, which I think is what you're asking for.

Damien
RobinS - 15 Feb 2008 06:59 GMT
On Feb 9, 4:06 am, eljainc <elja...@sbcglobal.net> wrote:
> Hello,
>
[quoted text clipped - 8 lines]
> Thanks.
> Mike

Hi Mike,

Have you looked at the WindowsFormsHost from
System.Windows.Forms.Integration? It lets you put the WinForms
controls inside WPF, which I think is what you're asking for.

Damien

==========================

Damien,

What about the other way around? Will it let you put WPF controls on a
Windows form?

RobinS.
Damien - 18 Feb 2008 09:06 GMT
> On Feb 9, 4:06 am, eljainc <elja...@sbcglobal.net> wrote:
>
[quoted text clipped - 27 lines]
>
> RobinS.

There is a similar control that lets you do that. Typing "host wpf
winforms" into google found an MSDN walkthrough as the first link.

Damien
RobinS - 20 Feb 2008 05:38 GMT
On Feb 15, 6:59 am, "RobinS" <rob...@imnottelling.com> wrote:
> "Damien" <Damien_The_Unbelie...@hotmail.com> wrote in message
>
[quoted text clipped - 30 lines]
>
> RobinS.

There is a similar control that lets you do that. Typing "host wpf
winforms" into google found an MSDN walkthrough as the first link.

Damien
----------------------

Brilliant. Thanks.
RobinS.
GoldMail, Inc.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.