Re: Get all controls on Form?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 04/13/04


Date: 13 Apr 2004 11:27:53 +0200


* "msnews.microsoft.com" <phunv@yahoo.com> scripsit:
> I want to get all the controls (TextBox, Label, ComboBox,..) on a form,
> however the Form.Controls collection only contain those put directly on form
> but not those in GroupBox controls or TabControl,...
> I dont' want to go through Controls collection of all those Container
> controls to get the controls i wanted.

You will have to do that.

-- 
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Relevant Pages

  • Re: Theory of beliefs, belief fields
    ... real thing, and chromed switches resembling the real thing, and some LED ... and proprietary bar controls and I dont remember if last working ... version had knob controls on the guitar though they dont seem to useful. ... I was supposed to scratch with wood. ...
    (sci.econ)
  • Re: Events for programmatically created controls?? how..
    ... > So in ASP.NET we may use viewstate to store variables in a page scope but ... called I run my buildPage routine which programmatically adds all the ... these controls in the sense of: strText = txtTextbox.Text for example - ... maybe it does...I dont know... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Deploying a VB.NET Application to IP site
    ... if they dont open an account with http://www.brinkster.com/ and upload your ... > WEB Page provider by my Internet Provider. ... > no TEXTBOX or Button controls present? ... > I have loaded up a personal site using MS Publisher previously without any ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Decoupling javascript from UserControls
    ... But i dont understand you completely. ... In some of our UserControls there are javascript blocks, ... If you are using third party controls, ... especially if you are attempting to consolidate numerous libraries. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Disable other field in form
    ... if you know VB syntax (I dont) then you could loop through the controls ... > select name first then unlock other 4 fields. ... > screen and lock it. ...
    (microsoft.public.access.forms)