Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 2nd, 2006, 03:31 PM
Authorized User
 
Join Date: Mar 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sharing one dataset between forms

Is it possible to update a dataset from a different form that "owns" the dataset? I dont want to recreate the dataset just to update it, that seems kind of risky.

 
Old October 30th, 2006, 09:35 AM
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

YOu could declare the dataset inside a class.
then in your Form declare the class as Public Shared,
then access the dataset from the class through the form
that declared the class... if that makes sense to you

Cheers

 
Old November 15th, 2006, 10:41 AM
Authorized User
 
Join Date: Mar 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah actually thats exactly what I did.






Similar Threads
Thread Thread Starter Forum Replies Last Post
One Dataset, Two Forms hexOffender Pro VB Databases 0 October 23rd, 2006 03:54 PM
Sharing code GuyB CSS Cascading Style Sheets 1 July 6th, 2006 09:41 PM
Sharing code GuyB ASP.NET 2.0 Basics 2 July 6th, 2006 06:50 PM
Sharing a Folder adman VB How-To 4 December 19th, 2003 05:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.