Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / September 2004

Tip: Looking for answers? Try searching our database.

Creating a new type of form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rhy Mednick - 12 Sep 2004 01:40 GMT
I am creating a tool that will allow developers to create a new type of
form.  My new form is derived from System.Windows.Forms.Form but has new
properties added and some properties are hidden.

Right now I am considering using an add-in to allow users of my tool to add
this new type of form to a project.  My add-in would make sure that there
was a reference to my library, add a normal form to the project and then
change the form so that it's derived from my form and not from
System.Windows.Forms.Form.  Is there a better way to do this?  Ideally, I
would like to have an icon in the "Add New Item..." dialog but I have no
clue how to go about doing that.  Is it even possible?

Thanks for the advice.

- Rhy
Carlos J. Quintero [MVP] - 13 Sep 2004 14:36 GMT
Yep, you have to create your form template and put it in the proper folder
of VS.NET. The following article that I wrote gives you some folders:

HOWTO: Changing the source code of templates used by Visual Studio .NET
wizards
http://support.microsoft.com/default.aspx?scid=kb;en-us;555160

Signature

Carlos J. Quintero (Visual Developer - .NET MVP)

FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET
addins:
http://groups.yahoo.com/group/vsnetaddin/ (free join)

> I am creating a tool that will allow developers to create a new type of
> form.  My new form is derived from System.Windows.Forms.Form but has new
[quoted text clipped - 11 lines]
>
> - Rhy
John Eikanger [MSFT] - 16 Sep 2004 18:07 GMT
Hi, Rhy

A VSIP guy of your acquaintence named Mike Wong suggests you can find
additional information in the following books:

Inside Visual Studio .Net version 2003  ISBN 0-7356-1874-7
Mastering Visual Studio .NET  ISBN 0-596-00360-9

Hope this helps,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| From: "Carlos J. Quintero [MVP]" <carlosq@NOSPAMsogecable.com>
| Subject: Re: Creating a new type of form
[quoted text clipped - 24 lines]
| >
| > - Rhy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.