|
-
Apr 21st, 2003, 11:33 AM
#1
Thread Starter
PowerPoster
Accessing DataSet from A While in B.
How can I access a DataSet on Form1 from Form2?
Thanks
-
Apr 21st, 2003, 11:39 AM
#2
PowerPoster
I can think of many ways; CurrencyManager, pass in reference to dataset in the form's constructor, etc..
Are you launching a modal dialog or just displaying another form?
-
Apr 21st, 2003, 11:39 AM
#3
Thread Starter
PowerPoster
-
Apr 21st, 2003, 11:43 AM
#4
PowerPoster
All you have to do is overload the form's constructor to accept a dataset as one of its parameters.
-
Apr 21st, 2003, 11:44 AM
#5
Thread Starter
PowerPoster
thanks I'll give it a go...
What about inheriting the ds from the other form?
-
Apr 21st, 2003, 11:52 AM
#6
PowerPoster
You could wrap up your dataset into a business object and expose to your other classes.
-
Apr 21st, 2003, 11:53 AM
#7
Thread Starter
PowerPoster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|