By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

Data Connections Wizard

P: n/a
Hi All,

I used the data connections wizard to automatically
create the connections, data adapters and then data
set to contain the date from my database. The typed
dataset that is created is placed in a class on its own,
however the resulting objects are created with Friend
scope in the main form.

I would like to use the data stored in these objects in
other forms I will require in my application, to hold lists
of options in combo boxes, etc.

Does anyone have any suggestions as to how I should
declare these variables, or indeed, redfine them so that
I can call them without getting a NullReference
excpetion when trying to access the dataset on another
form?

Many thanks,

Jason.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Jason,

By the wizard created strongly typed dataset helps you in standard
situations when you are using it to display information. So very good
usable, however I do not know a MSDN samples where it is used for updating a
database or/and more of that stuff.

So make your choise use the wizard and keep you on the situations where for
it is created, make your own strongly typed datasets by hand or use untyped
datasets.

Just my opinion.

Cor
Nov 20 '05 #2

P: n/a
Hi Cor,

thanks for the info. I am using a control that works best
then the DS is generated with the Wizard so I would
like to stick with it until I have figured out how to use
the 3rd party control from code.

Thanks,

Jason.

On Mon, 26 Jul 2004 12:06:37 +0200, "Cor Ligthert"
<no**********@planet.nl> wrote:
Jason,

By the wizard created strongly typed dataset helps you in standard
situations when you are using it to display information. So very good
usable, however I do not know a MSDN samples where it is used for updating a
database or/and more of that stuff.

So make your choise use the wizard and keep you on the situations where for
it is created, make your own strongly typed datasets by hand or use untyped
datasets.

Just my opinion.

Cor


Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.