Problem solve Get help with specific problems with your technologies, process and projects.

Save development time by using inherited forms

You can use an inherited form to reuse a set of controls, or code written in another form, without doing any coding.

This tip was submitted to the VS.NET Info Center by member Thomson Alexander. Please let other users know how useful it is by rating it below. Do you have a tip or code of your own you'd like to share? Submit it here.


Here is a method to save you development time and cost. You can use an inherited form to reuse a set of controls, or code written in another form, without doing any coding.

Suppose you are developing an enterprise application that follows a lot of design and development standards. Your manager insists that a particular set of controls and related coding in a form be plugged into all the forms. You can create the new form you're developing as an inherited form.

If you right click on the solution and then add an item, you can see the inherited form item. You will be asked which form you want to inherit. Specify the form and you will get a new form with all the controls and code from the inherited form.

You cannot modify the inherited controls on the new form, but you can add new items.

Dig Deeper on Win Development Resources

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

Close