473,383 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Form Templates

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
4 1175
Cor
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
Nov 20 '05 #2
My god Cor, do you never rest ?

;-)

Regards - OHM#

-------------

Cor wrote:
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# On**********@BTInternet.com
Nov 20 '05 #3
* Ivan Weiss <iv*****@optonline.net> scripsit:
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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Glyphman | last post by:
I have a bunch of pages with long forms, with lots of input types-text, radios, textareas, and the debugging process has become overwhelming. What I need to happen is to make sure that 1. Every...
21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
20
by: Griff | last post by:
Hi there I'm after some suggestions as to how one might best separate form and content in a normal run-of-the-mill web application. I'm sure whole bookshelves have been written on this, but I...
5
by: Jay Villa | last post by:
I am planning to implement some templates (around 30 templates). User will select this template from the drop down and click print. When it prints it should populate few fields from the form to...
4
by: Martin | last post by:
I want to build a data entry form for creating and updating info on something. When I'm first creating an item all the fields need to be editable. There after some fields become readonly. Most...
3
by: Leo J. Hart IV | last post by:
OK, here's another question for the experts: I am building a multi-step (3 steps actually) form using a panel for each step and hiding/displaying the appropriate panel/panels depending on which...
3
by: Lars Netzel | last post by:
In VB6 I remember finding templates for forms like "About " and "Licence Agreemenet" and so on when creating a new Form. Where are they in .NET, not included? Can you download Froms like that,...
3
by: sajin | last post by:
Hi All, I developed a windows form application which shows initial form which contain many labels , datagridview and List View etc . I show the thumbnail view of the word templates in the list...
4
by: sadc1986 | last post by:
How does one introduce multiple worksheets in a excel using Xslt Transforms my code... Please suggest <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
1
by: McGeeky | last post by:
Hi. There are plenty of sites on the internet offering pre-canned templates for web sites, but what about pre-canned templates for web forms? Can anyone point me in the direction of a site/sites...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.