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 / Windows Forms / Design Time / March 2005

Tip: Looking for answers? Try searching our database.

Beginner Project on Inherited Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger Stenson - 07 Mar 2005 00:22 GMT
Hi All
I would be grateful for help with this learning problem
I am trying to adopt the use of Inherited forms guided by the Simple
walkthrough in the VB Help file
I have designed  & built a mulitpurpose  base form class which has a number
of controls and a 'New' routine requiring three parameters which control the
appearance and role of the form when created.

I am trying to test the Form using a  Sub Main which loads a Form1  which
has inheried my built form. However the inherited form will not take the
'New' parameters when instatiating the form and executes a two line machine-
generated 'New' rather than the one I have built in the base form. It loads
an unformated view of the inherited base form.
I have tried overwriting the two line 'New' Routine in the Form 1 with a
copy of the generated code from the Form 1 generates further errors and does
not execute.. How do I an inherited form to run the inherited New Routine

Roger Stenson.
joeycalisay - 07 Mar 2005 04:51 GMT
Form1 which inherits from your base form should also have a three-parameter
constructor which just forwards it to the base class constructor.

Form1 constructor:
Sub New(param1, param2, param3)
{
   MyBase(param1, param2, param3)
}

Signature

Joey Calisay
http://spaces.msn.com/members/joeycalisay/

> Hi All
> I would be grateful for help with this learning problem
[quoted text clipped - 14 lines]
>
> Roger Stenson.

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.