|
-
Apr 21st, 2003, 11:33 AM
#1
Thread Starter
PowerPoster
Accessing DataSet from A While in B.
In C# how can I access a DataSet on Form1 from Form2?
Thanks
__________________
-
Apr 21st, 2003, 12:36 PM
#2
Frenzied Member
You have to pass it to back and forth. Modify the constructor for form 2 to take a dataset object. When you instantiate form 2, pass the dataset to it. After you are finish with it, you can pass it back to form 1.
Dont gain the world and lose your soul
-
Apr 21st, 2003, 01:26 PM
#3
PowerPoster
DevGrp,
I dont even think it is necessary to pass it back because when passing reference types, they are passed by reference regardless.
-
Apr 21st, 2003, 01:35 PM
#4
Frenzied Member
Originally posted by Lethal
DevGrp,
I dont even think it is necessary to pass it back because when passing reference types, they are passed by reference regardless.
Yes thats correct. I forgot about that
Dont gain the world and lose your soul
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
|