Article View: borland.public.csharpbuilder.language.csharp
Article #124Re: Delphi to C#
From: Godfrey
Date: Fri, 16 Mar 2007 07:26
Date: Fri, 16 Mar 2007 07:26
31 lines
2051 bytes
2051 bytes
Where do I insert this in my code? Thanks "Craig Stuntz [TeamB]" <craig_stuntz@nospam.please [a.k.a. acm.org]> wrote in message news:45f7f836@newsgroups.borland.com... > 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:
<45fa46a8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45f7c493@newsgroups.borland.com> <45f7f836@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: "Godfrey" <none> Newsgroups: borland.public.csharpbuilder.language.csharp References: <45f7c493@newsgroups.borland.com> <45f7f836@newsgroups.borland.com> Subject: Re: Delphi to C# Date: Fri, 16 Mar 2007 09:26:41 +0200 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 NNTP-Posting-Host: 41.240.30.24 Message-ID: <45fa46a8@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1174029992 41.240.30.24 (16 Mar 2007 00:26:32 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail