1
Reply

C# windows form, SQL connection data into text box ???

Damian Zelazny

Damian Zelazny

Jun 23 2009 1:33 PM
8.3k
Hello Everybody I have a problem with retreiving data from Example Northwind.sdf database I need your help please !!!! I`m very new to C# sharp so please be understanding. So far I got a connection but cannot manage to get data into the text box(i`m using Microsoft Visual C# 2008 Express Edition) I looked into hundreds of examples and still nothing... this is my CODE private void getDataButtton_Click(object sender, EventArgs e) { string conString = Properties.Settings.Default.NorthwindConnectionString; using (SqlCeConnection connect = new SqlCeConnection(conString)) { try { connect.Open(); MessageBox.Show("Connection Established"); ..................... ..................... ..................... } catch { MessageBox.Show("Connection Error!!!"); } } } As you can see this is only connection code... I will be very greatfull if someone can help me out

Answers (1)