Click here to Skip to main content
15,909,498 members
Home / Discussions / C#
   

C#

 
QuestionFrom Excel to C# Pin
NaturePhoenix22-Feb-11 23:46
NaturePhoenix22-Feb-11 23:46 
AnswerRe: From Excel to C# Pin
I Believe In GOD23-Feb-11 0:43
I Believe In GOD23-Feb-11 0:43 
AnswerRe: From Excel to C# Pin
Ravi Sant23-Feb-11 0:52
Ravi Sant23-Feb-11 0:52 
GeneralRe: From Excel to C# Pin
NaturePhoenix23-Feb-11 5:35
NaturePhoenix23-Feb-11 5:35 
GeneralRe: From Excel to C# Pin
Mycroft Holmes23-Feb-11 13:46
professionalMycroft Holmes23-Feb-11 13:46 
AnswerRe: From Excel to C# Pin
PIEBALDconsult23-Feb-11 1:41
mvePIEBALDconsult23-Feb-11 1:41 
GeneralRe: From Excel to C# Pin
NaturePhoenix23-Feb-11 2:54
NaturePhoenix23-Feb-11 2:54 
QuestionUI for ACCESS database in C# [modified] Pin
Member 769794322-Feb-11 23:05
Member 769794322-Feb-11 23:05 
Hello,
I'm trying to write a UI in C# for an existing Access database.

1.I've connected to Northwind sample database according to MSDN tutorial:
http://msdn.microsoft.com/en-us/library/ms171893%28VS.80%29.aspx
2.I made a Windows Form Project.
3.I added a button and assigned to it code that modifies an entry in the database.
4.The code for the form looks like this:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AccessUI
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
NwindDataSet.CustomersRow customersRow =
nwindDataSet.Customers.FindByCustomerID("ALFKI");

customersRow.CompanyName = "Updated Company Name";
customersRow.City = "Seattle";
}
}
}

5. Then I run the code, press the button,but after running the code I do not see the changes in the database.
Would you please advice what can be the problem.
Thank you. Polina.

modified on Wednesday, February 23, 2011 5:46 AM

AnswerRe: UI for ACCESS database in C# Pin
Hum Dum22-Feb-11 23:27
Hum Dum22-Feb-11 23:27 
AnswerRe: UI for ACCESS database in C# Pin
OriginalGriff22-Feb-11 23:28
mveOriginalGriff22-Feb-11 23:28 
AnswerRe: UI for ACCESS database in C# Pin
Hum Dum23-Feb-11 17:37
Hum Dum23-Feb-11 17:37 
Jokesend the information of textbox to combobox [modified] Pin
hanis2926822-Feb-11 23:02
hanis2926822-Feb-11 23:02 
AnswerRe: send the information of textbox to combobox Pin
Hum Dum22-Feb-11 23:21
Hum Dum22-Feb-11 23:21 
GeneralRe: send the information of textbox to combobox Pin
DaveyM6923-Feb-11 0:41
professionalDaveyM6923-Feb-11 0:41 
AnswerRe: send the information of textbox to combobox Pin
Richard MacCutchan22-Feb-11 23:22
mveRichard MacCutchan22-Feb-11 23:22 
AnswerRe: send the information of textbox to combobox Pin
OriginalGriff22-Feb-11 23:29
mveOriginalGriff22-Feb-11 23:29 
GeneralRe: send the information of textbox to combobox Pin
Richard MacCutchan23-Feb-11 0:07
mveRichard MacCutchan23-Feb-11 0:07 
GeneralRe: send the information of textbox to combobox Pin
OriginalGriff23-Feb-11 0:09
mveOriginalGriff23-Feb-11 0:09 
QuestionByte arrays to pdf Pin
Etienne_12322-Feb-11 22:13
Etienne_12322-Feb-11 22:13 
AnswerRe: Byte arrays to pdf Pin
Wayne Gaylard22-Feb-11 22:34
professionalWayne Gaylard22-Feb-11 22:34 
GeneralRe: Byte arrays to pdf Pin
Etienne_12323-Feb-11 3:48
Etienne_12323-Feb-11 3:48 
GeneralRe: Byte arrays to pdf Pin
Wayne Gaylard23-Feb-11 19:57
professionalWayne Gaylard23-Feb-11 19:57 
GeneralRe: Byte arrays to pdf Pin
RaviRanjanKr25-Feb-11 18:03
professionalRaviRanjanKr25-Feb-11 18:03 
QuestionSqlDataReader vs. SqlDataAdapter Pin
Dewald22-Feb-11 19:26
Dewald22-Feb-11 19:26 
AnswerRe: SqlDataReader vs. SqlDataAdapter PinPopular
OriginalGriff22-Feb-11 20:56
mveOriginalGriff22-Feb-11 20:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.