Solved

WPF or Standard Winform for Smart Client?

Posted on 2009-04-06
4
326 Views
Last Modified: 2013-11-12
I need to know the best way to approach building a smart client front-end.   Should I use WPF or standard windows forms?

I was messing around with WPF and you can't do as much with it, or maybe you can.. when comparing it to standard windows forms.  

What is the advantages of building WPF's front-ends compared to window forms?  

Any opinions would help me out.  Thanks..

0
Comment
Question by:StrongD1
  • 2
  • 2
4 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 24079490
WPF can create richer forms but since the technology is quite new, not all components are available yet.

If I was starting a new project today, I would probably start it as a WPF application in which you can add regular Windows Forms as well a WPF Forms.

The next version of Visual Studio will enhance your experience.
0
 
LVL 1

Author Comment

by:StrongD1
ID: 24079713
So I can create the Windows forms for things that the WPF won't do and add the Win forms to my WPF project?  Is that what you are saying?  Maybe making a mixture of Win forms and WPF forms?

I noticed that the WPF controls are limited.  There isn't a SQL data adapter control...  Could I talk to a SQL Db's with just code?  

I am currently writing several web services so when the user is actually connected to the network, the client can call the web servces (If needed) and get data, query db, add records, delete records, etc.  When the user is disconnected, I will have a SQL Server Compact DB and the user can still do things as well as store data in the SQL Server Compact, when the user is connected again after being offline, the data from the SQL Server compact will sync with the SQL Server 2008 on the network.  

Does that sound like a good way to approach this?  I was going to approach this use web application, but that means, when offline I would have to have IIS running on the local machine.  It just seemed clunky...  Win forms is the best approach I think...

Let me know your opinion... thanks...
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 24079784
>>So I can create the Windows forms for things that the WPF won't do and add the Win forms to my WPF project?  Is that what you are saying?  Maybe making a mixture of Win forms and WPF forms?

Yes. But be sure to start your application as a WPF application. If you started a regular Windows Application, you will have to add regular winforms, add a ElementHost control to your form and then you will be able to host a WPF usercontrol into that host.

>>I noticed that the WPF controls are limited.  

it is a pretty new technology that will be greatlty enhanced in the next year.

>>Does that sound like a good way to approach this?  

WPF cannot run on Compact Framework. Windows/WPF applications seems a right choice for your scenario.
0
 
LVL 1

Author Closing Comment

by:StrongD1
ID: 31567076
Thanks emoreau!!!!

I appreciate your info and your opinions.  Thanks for this.  I am going to start building the client side today...  take a break from the web services for awhile.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now