Form Templates

  • Thread starter Thread starter Ivan Weiss
  • Start date Start date
I

Ivan Weiss

Hey all, I am re-using some common code and properties for all of my
forms and wanted to know if I can make a Form template and have all of
my other forms derived off of that template?

I attempted to make a form and change the Inherits line to read:

Inherits myTemplateForm

However, then the form designer does not work because I removed
System.Windows.Forms.Form.
I cannot add this because you can only have one inherits line.

Anyone know how to do this since I really doubt that everytime you
create a form in a major app you have to reset basic properties.

-Ivan
 
Hi Ivan,

You can use the add new methode with: "files or the rightclick in the
solution explorer on your project", to get a form and in that it let you
choose the form you want to inherrit from.

I hope this helps?


Cor
 
My god Cor, do you never rest ?

;-)

Regards - OHM#

-------------
Hi Ivan,

You can use the add new methode with: "files or the rightclick in the
solution explorer on your project", to get a form and in that it let
you choose the form you want to inherrit from.

I hope this helps?


Cor

Regards - OHM# (e-mail address removed)
 
* Ivan Weiss said:
Hey all, I am re-using some common code and properties for all of my
forms and wanted to know if I can make a Form template and have all of
my other forms derived off of that template?

I attempted to make a form and change the Inherits line to read:

Inherits myTemplateForm

However, then the form designer does not work because I removed
System.Windows.Forms.Form.
I cannot add this because you can only have one inherits line.

Works for me perfectly. Which error message do you get?
 
Thanks, I actually just finished reading that in a reference book I
bought, finally, today before I read those e-mails so already have it
working.

Thanks for the help!

-Ivan
 
Back
Top