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?
AhmadPosted Jul 23, 2008, 1:05 PM
Satish KathiPosted Jul 23, 2008, 1:03 PM
Set the Data Source = (local) instead of computer name
Data Source=(local)
AhmadPosted Jul 23, 2008, 12:44 PM
Satish KathiPosted Jul 23, 2008, 9:52 AM
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;
Ryan AlfordPosted Jul 23, 2008, 9:20 AM