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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Classes trouble

Status
Not open for further replies.

FattyKat

Programmer
Feb 21, 2002
32
IN
I have a class created in project explorer. Actually its a form with my own cosmetics. Now is it possible that any new forms i create have these cosmetics on them? Or isnt this the objective of classing and subclassing?
 
Yes it is. Go to tools options and set the form template to your class.

 
From the command window you can create a new form with the syntax:

CREATE FORM [FormName] AS [cClassName] FROM [cClassLibraryName]


Charl

 
Or if you create a new class using the project manager, choose new, give the classname and look for the classlib with your base class form and select your form as the baseclass for your new form.

HTH,
Weedz (Edward W.F. Veld)
My private project:Download the CrownBase source code !!
 
Hi

If you want to create a form.scx, you can
go to the project, click on documents, choose
new form. A new form will appear. You then click
on the Class Tab and drop your Form Class into the newly
created form. You end up with a formSet, one base Form
and your sub-classed form. Click on the first form, go to
the menu, choose 'Form', then 'Remove form',
and 'Form' and 'Remove Formset' (you don't want to use formsets).


Good luck
Nro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top