app.config file
-
Hi I need help. Have drag-and-drop for the components eg. dataset, bindingsource and table adpters. There is now a default connection string in my app.config file. The user can now ,using FileOpenDialog on the main form, choose a different database if they want. I simply take this path as a public static string and assign it as the new connectionString. obviously now the dataset must change accordingly. which is does on this main form. but as soon as i load a child form and still want to use this new dataset obviously, the connection string is changed in the designer code of the tableAdapter.fill() method back to the default connectionstring in the app.config file. Declaring my connection string as a public static variable worked perfectly in another project where i actually programmatically created my dataset,bindingsource and table adapters. Is this one of the limitations one has when using drag and drop components??:confused: Please if someone could help me..