Dataset Question

M

Martin Horn

Hi,

I have used the datasource wizard to add a local datasource to a combo box.
This all works fine up to a point, but what I want to do is at runtime,
specify the path to the database file that the combo box should be bound to
as it may not always be in the same location.

The Wizard has added a DataSet, a DataConnector and a TableAdaptor and the
database.mdb and a DataSet.xsd have been added in solution explorer.
I'm using Visual Basic 2005 Express Beta.
If this is posted in the wrong group, I apologise and would appreciate it if
someone could point me in the right direction.

Thanks in advance,

Martin Horn.
 
W

W.G. Ryan eMVP

All the designer is doing is writing code for you. All you need to do is
store those values somewhere, for instance in a config file, and then set
the properties whenever your form loads.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top