Control
hi all
I want to make project with DB made by SQL server and i want to make a setup file i do not know how to make the DB run on the user computer because the Connection String changing from computer to another i hope to help me in that?
the second question i have form1 and form2 i called form2 from form1 by show dialog method how can i get the text from textbox that is in form2?

Ryan AlfordRank #1,411 · 1.2K reputationPosted Jul 23, 2008, 5:20 AM EDT
Satish KathiRank #8,369 · 223 reputationPosted Jul 23, 2008, 5:52 AM EDT
Set the Modifiers property of the Textbox in Form2 to Public.
And the following code will retrieve Text of the TextBox in Form2
Form2 f = new Form2();
f.ShowDialog();
string textFromForm2 = f.textBox1.Text;
Ahmad48 reputationPosted Jul 23, 2008, 8:44 AM EDT
Satish KathiRank #8,369 · 223 reputationPosted Jul 23, 2008, 9:03 AM EDT
Set the Data Source = (local) instead of computer name
Data Source=(local)
Ahmad48 reputationPosted Jul 23, 2008, 9:05 AM EDT