Click to See Complete Forum and Search --> : A question about classes
King Abadon
May 10th, 2007, 03:36 AM
I have a form with a grid linked to a SQL table and INSERT/DELETE/SAVE/UPDATE buttons.How can i make a class so that everytime i want to make a new project,form use the that grid?
if you have some samples with such grid i would be in dept to you.
jmcilhinney
May 10th, 2007, 06:19 AM
You've already made a class. If you want to be able to use it in multiple projects then compile it into a class library, i.e. DLL. You can then reference that library in other projects just as you reference the Framework libraries.
mendhak
May 10th, 2007, 02:20 PM
More specifically, you probably are looking to make a user control. It should be in your projects list when you create a new project in Visual Studio.
jmcilhinney
May 10th, 2007, 05:31 PM
Ah, I read that as wanting to use the same form rather than the same grid. Go with what the frog says. He looks trust-worthy enough. ;)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.