🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

C# FindComponent()

#479
From: L Hill
Date: Sat, 22 Jan 2005 00:29
15 lines
1215 bytes
Is there a Windows forms.Net (C#) equivalent for the
FindComponent("ComponentName") function in Delphi?

To do something like this:

--------------------------------------------
var
  aComp: TComponent;

aComp := FindComponent("EditBox1");
if Assigned(aComp) then
  (aComp as TEditBox).Text = "Hello";
--------------------------------------------

Thanks in advance.
Technical Details
Message-ID: <41f19e6d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,4151d34871fb2178,start
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "L Hill" <hillla@yahoo.com>
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: C# FindComponent()
Date: Fri, 21 Jan 2005 19:29:45 -0500
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
x-mimeole: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 65.32.211.210
Message-ID: <41f19e6d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106353773 65.32.211.210 (21 Jan 2005 16:29:33 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail