🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #122

Re: Delphi to C#

#122
From: Craig Stuntz TeamB
Date: Wed, 14 Mar 2007 14:27
25 lines
2010 bytes
Godfrey wrote:

> In Delphi, if you want to reference another form or its components
> you just added that form name to the uses section in the form you are
> working (Delphi even added it automatically for you. Go Delphi).
> Then you can work that form or any of its components from another
> form.
> 
> How do I do this in C#?.

	The C# equivalent of Delphi's "uses" is using. So you can say:

using Other_Namespace;

	If Other_Namespace contains an instance variable for the other form,
you can then work with that instance in your code.

	Remember that namespaces and files aren't the same thing. You specify
the namespace, not the filename.

-- 
Craig Stuntz [TeamB] � Vertex Systems Corp. � Columbus, OH
  Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Want to help make Delphi and InterBase better?  Use QC!
  http://qc.borland.com -- Vote for important issues
Technical Details
Message-ID: <45f7f836@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45f7c493@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,df620dd13815f8c0
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII
From: "Craig Stuntz [TeamB]" <craig_stuntz@nospam.please [a.k.a. acm.org]>
Subject: Re: Delphi to C#
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <45f7c493@newsgroups.borland.com>
Organization: Vertex Systems Corporation
User-Agent: XanaNews/1.18.1.5
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
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 24.106.104.205
Message-ID: <45f7f836@newsgroups.borland.com>
Date: 14 Mar 2007 06:27:18 -0800
X-Trace: newsgroups.borland.com 1173878838 24.106.104.205 (14 Mar 2007 06:27:18 -0800)
Lines: 25
X-Authenticated-User: cstuntz
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail