Click here to Skip to main content
15,910,471 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I'm looking for some links to a C# windows app that uses an SQL database, specifically, how to view/update/delete info from the form.

I'm building a C# app in Visual Studio 2008 and I want to add a database to it. I already made the tables and relations in the database, and now I want to be able to view/add/delete data from the application. I was able to bind the database to some combo boxes, but I don't know how to update them when a user selects some data from the combo box. I've been looking for some tutorials for the past few days but I keep getting info on how to build a database, which is not what I need.

I know this is a simple thing, but I'm tired of searching fruitlessly for it and would like some help. This is the last part of my project that I don't know how to do and I want to get it finished as soon as possible.

Thank you for your help! 

Posted

There are many such examples here on CodeProject, use the Articles tab on the menu bar above.

 
Share this answer
 
I realize it can be frustrating when you are just starting out, because you don't even know what to look for. You really should read a book, but since you've put some work into this already, I'll throw you a bone. Here are some links and keywords you'll want to look into:

Some of those are advanced topics (ADO and LINQ, especially the latter), but that should give you some starting points of things to look into.
 
Share this answer
 
v4
The answer I found came from the book "Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition" by Andrew Troelsen. He has a lot of good C# examples, but for a "Pro" book it didn't go too deep. Good intro to C# book though.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900