Article View: alt.comp.lang.vba
Article #5Re: determing which frame a component is placed on
From: Jeff Johnson [MVP: VB]
Date: Thu, 07 Aug 2003 14:11
Date: Thu, 07 Aug 2003 14:11
23 lines
2309 bytes
2309 bytes
"michael gois" <mikey@gois.net> wrote in message
news:FzrYa.53239$9C6.3177735@wards.force9.net...
> I am building an application which uses several frames, and then frames
> inside frames, but not all appearing at the same time.
> The problem is that i am now finding sometimes controls which i created
and
> have no idea where which frame they have been placed on. I can see the
> controls in the properties box, but obviously if i dont have the frame on
> the screen or if there are frames on top of it, i cannot see the control.
> Is there a way to find out what frame a component has been placed on?
You mean while designing in the IDE? No, there is nothing to tell you that.
Even the wonderful MZTools doesn't have such a feature. You could hop into
run mode, break the execution, and type
? <YourControl>.Container.Name
in the Immediate window to get the name of the container. If the group box
is in a control array, you'll also want
? <YourControl>.Container.Index
Technical Details
Message-ID:
<e7Uq#2OXDHA.1888@TK2MSFTNGP10.phx.gbl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!enews.sgi.com!msrnewsc1!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gblReferences:
<FzrYa.53239$9C6.3177735@wards.force9.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b392,dcd0afba46c1c50c X-Google-Attributes: gid10b392,public X-Google-Thread: 10b213,dcd0afba46c1c50c X-Google-Attributes: gid10b213,public X-Google-Thread: 113d8f,dcd0afba46c1c50c X-Google-Attributes: gid113d8f,public X-Google-Thread: 110e3b,dcd0afba46c1c50c X-Google-Attributes: gid110e3b,public X-Google-Thread: 109fdd,dcd0afba46c1c50c X-Google-Attributes: gid109fdd,public X-Google-ArrivalTime: 2003-08-07 07:12:03 PST From: "Jeff Johnson [MVP: VB]" <i.get@enough.spam> References: <FzrYa.53239$9C6.3177735@wards.force9.net> Subject: Re: determing which frame a component is placed on Date: Thu, 7 Aug 2003 10:11:02 -0400 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <e7Uq#2OXDHA.1888@TK2MSFTNGP10.phx.gbl> Newsgroups: alt.comp.lang.vba,cn.bbs.comp.lang.visual-basic,comp.lang.basic.visual.misc,microsoft.public.vb.controls,microsoft.public.vb.controls.creation NNTP-Posting-Host: nat.dmenet.com 207.0.220.67 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!enews.sgi.com!msrnewsc1!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl