Q:) Need sample code for a best practices Windows Form app

N

news.microsoft.com

Is there anything like Petshop or Duwamish but more of a regular
client/server windows forms based app that demonstrates good Window Forms
coding practices? Or something that just demonstrates the right way to
bind controls to data for a c/s app?

My .Net experience is mostly web app based so I'm used to opening datasets
and going back to refetch records on subsequent server roundtrips, etc.

I'm not sure about the best way to work with data sets and bound controls on
a client/server type of app where I can be fully coupled to the database.
I used to work with Delphi which had components for persistent database
connections and table objects that you opened once, wired your grids and
edit boxes up to, and did all of your updates through. I know .net can do
that but everything seems oriented towards disconnected apps. Then again,
maybe thats the better way, either way - some pointers would be helpful...

Thanks

bill
wiw at nyc . rr com
 
A

Andy Mortimer [MS]

You might find this PAG helpfull, should be a few more up there which are
pertinent

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/
eappint.asp

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 
B

bill

Thanks. I'm looking that over but it's more high level than what I need at
first.

I'm looking more for some nuts and bolts in terms of where to define
datasets & record sets so they're available to any event on the form as
opposed to creating them and fetching records for each event the way a web
app might.

Basically a regular form where you view records and can add/edit/delete but
done the right way including traps for optimistic lock failures, etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top