🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Finding a Winform control

#54
From: Dale Williams
Date: Wed, 01 Feb 2006 16:27
17 lines
1472 bytes
Everyone:

I have several form control names in a table.  Using a foreach loop I 
can loop through all the controls on the form and match the control 
names from the table.  This can be very slow when there a a lot of 
controls on a form.

What I want to do is go right to the control I need to change without 
having to loop through all controls.

I've Tried using Control.Controls.Item but item doesn't take a 
controlname, only a number value.

Any ideas on how this can be done?

Sincerely,
Dale Williams
Technical Details
Message-ID: <43e0e0cd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,c958901c2789ecde,start
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 01 Feb 2006 11:27:56 -0500
From: Dale Williams <dwilliams@yf.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: Finding a Winform control
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 72.43.20.144
Message-ID: <43e0e0cd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138811085 72.43.20.144 (1 Feb 2006 08:24:45 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail