Solved

WPF or Standard Winform for Smart Client?

Posted on 2009-04-06
4
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 70

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 70

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

623 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