Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Inheritance 1

Status
Not open for further replies.

bernardmanning

Programmer
Oct 14, 2003
61
GB
Hi,

I'm a former foxpro programmer whos used to using inheritance to create standard forms and controls for re-user throughout an application.

I've worked out how to create a standard base form from which all other forms will descend.

But, I'm having difficulties trying to create a 'class library' that will contain all my standard base class user controls.

eg , I'll create a new form from my base class and then begin to add my classed up controls.

can anybody tell me how to do this?

Thanks, Bernard

 
Welcome...from another old Foxpro hack, who swapped over to .NET about 2 years ago.

I know exactly what you mean about wanting to develop your own framework controls. This is what I did.

1) Create a new project called which will hold all your subclassed controls. I called this FwControls
2) Add the controls you require and customise
3) Rebuild the Project.
4) On your Toolbar, right click and add a new Tab..say call it Framework controls
5) Open up this tab, right click again, and select add/remove controls. Select Browse and search for the fwcontrols.dll which will be in the bin folder beneath the directory you created the fwcontrols project in.
6) This will add all your subclassed controls into your toolbar tab.

If/when you add more controls, you have to repeat the procedure but only the new ones are added.

Good luck



Sweep
...if it works dont mess with it
 
Hi SqueakinSweep,

That worked fine , thanks for that...

Nice to know that I'm not the only foxpro programmer on here.

I'm assuming it is possible to replicate class libraries and classed controls as we used to do in foxpro?

You know the kind of thing, create a class library that we can pick our application controls from etc

Bernard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top