🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.winforms.general
Article #6

Re: How to visualy inherit a windows form on a C# project in D2005 ?

#6
From: Marc Rohloff TeamB
Date: Wed, 25 Jan 2006 01:06
26 lines
2156 bytes
On Tue, 24 Jan 2006 14:14:32 -0300, Flavio Medeiros wrote:

> I'm here ... and have a question, but is there anyone to aswer ?
> How to visualy inherit a windows form on a C# project in D2005 ?

I'll assume you have a new project with a form in called the default
'WinForm' that you want to use as your base class.
A couple of things:
1) It needs to have a public parameterless constructor 
   so that the designer can create an instance of it.
2) You probably want to change the Modifiers property of your controls
to something like family (protected) or public

Compile your project

* Create a new Winform
* Change its base class from System.Windows.Forms.Form to 
  Project1.WinForm (the name of your base form)
* Close the editor tab in the IDE and reopen it.

BTW, There are plenty of people listening, what's really lacking is
people asking questions.

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID: <1kmre359g0r69$.dlg@marcrohloff.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <430b748f$1@newsgroups.borland.com> <43d66040$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efeb1,4ab37b1ebad15e9b
X-Google-Attributes: gid1efeb1,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: How to visualy inherit a windows form on a C# project in D2005 ?
Newsgroups: borland.public.csharpbuilder.winforms.general
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <430b748f$1@newsgroups.borland.com> <43d66040$1@newsgroups.borland.com>
Date: Tue, 24 Jan 2006 20:06:02 -0500
Message-ID: <1kmre359g0r69$.dlg@marcrohloff.com>
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
X-Antivirus: avast! (VPS 0604-1, 01/24/2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 65.31.14.220
X-Trace: newsgroups.borland.com 1138150851 65.31.14.220 (24 Jan 2006 17:00:51 -0700)
Lines: 26
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail