🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.winforms.controls.using
Article #428

Enum Controls

#428
From: dstef
Date: Tue, 10 May 2005 12:56
17 lines
1637 bytes
Hello folks. An very simple question.


How can i enum all components wich are belongs to WinForm ???

The code belove gives me null reference exception (access violation old 
fashion way :-) Self.Components not assigned) .

MessageBox.Show(Self.Components.Components.Count.ToString);

Why ???? I can enum controls but not the components ????

Any ideas ????

(I want to enum all dataset's wich they belongs to WinForm.)

Delphi 2005 Enterprise SP2
Technical Details
Message-ID: <4280ae6c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!easynet-quince!easynet.net!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!213.239.142.2.MISMATCH!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,e0fc1a61e394bcd3,start
X-Google-Attributes: gid1eff29,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 10 May 2005 15:56:47 +0300
From: dstef <distef01@yhaoo.gr>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en, el, tr
MIME-Version: 1.0
Newsgroups: borland.public.delphi.winforms.controls.using
Subject: Enum Controls
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 194.30.233.129
Message-ID: <4280ae6c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115729516 194.30.233.129 (10 May 2005 05:51:56 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!easynet-quince!easynet.net!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!213.239.142.2.MISMATCH!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail