Article View: borland.public.csharpbuilder.language.csharp
Article #55Re: Finding a Winform control
From: Marc Rohloff TeamB
Date: Thu, 02 Feb 2006 03:00
Date: Thu, 02 Feb 2006 03:00
17 lines
1660 bytes
1660 bytes
On Wed, 01 Feb 2006 11:27:56 -0500, Dale Williams wrote: > What I want to do is go right to the control I need to change without > having to loop through all controls. I can think of two ways: 1) Iterate through all the controls once creating a map in something like a Hashtable Create a map of strings to controls and then use this later for fast access. 2) Since each form will have a field with the same name just use Reflection to get the field. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<itg2o4oxrcnz$.dlg@marcrohloff.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43e0e0cd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,c958901c2789ecde X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: Finding a Winform control Newsgroups: borland.public.csharpbuilder.language.csharp User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <43e0e0cd$1@newsgroups.borland.com> Date: Wed, 1 Feb 2006 22:00:22 -0500 Message-ID: <itg2o4oxrcnz$.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 0605-4, 02/01/2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 65.31.14.220 X-Trace: newsgroups.borland.com 1138848877 65.31.14.220 (1 Feb 2006 18:54:37 -0700) Lines: 17 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail