|
-
May 10th, 2007, 03:36 AM
#1
Thread Starter
Junior Member
A question about classes
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.
-
May 10th, 2007, 06:19 AM
#2
Re: A question about classes
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.
-
May 10th, 2007, 02:20 PM
#3
Re: A question about classes
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.
-
May 10th, 2007, 05:31 PM
#4
Re: A question about classes
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.
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
|