PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Referencing Controls Inside a Frame

Reply

Referencing Controls Inside a Frame

 
Thread Tools Rate Thread
Old 09-07-2003, 09:07 PM   #1
Patrick Flower
Guest
 
Posts: n/a
Default Referencing Controls Inside a Frame


When working with controls on custom forms, it has been
easy to create a page object and then manipulate a control.
For example:

set myPage = Item.GetInspector.ModifiedFormPages
("Administration")

if Item.UserProperties("Standalone") then
myPage.Controls("cmdRelease").Enabled = False
else
myPage.Controls("cmdRelease").Enabled = True
end if

Question: How do you properly reference a control when it
is inside of a frame control. I can manipulate a frame
control on the page, but cannot seem to reference a
control within a frame.

I have tried creating a frame object and the referencing
the controls within that object, but have not had luck yet.

Documentation seems to be poor in this area. (Or I'm not
loking in the right spots)

Spinning my wheels and need to get going,
Patrick
  Reply With Quote
Old 10-07-2003, 02:29 PM   #2
Michael D. Ryan
Guest
 
Posts: n/a
Default Referencing Controls Inside a Frame

Have you tried the following?

Set myFrame = myPage.Controls("myFrame")
Set myNestedCtl = myFrame.Controls("myNestedCtl")


>-----Original Message-----
>When working with controls on custom forms, it has been
>easy to create a page object and then manipulate a

control.
>For example:
>
>set myPage = Item.GetInspector.ModifiedFormPages
>("Administration")
>
>if Item.UserProperties("Standalone") then
> myPage.Controls("cmdRelease").Enabled = False
>else
> myPage.Controls("cmdRelease").Enabled = True
>end if
>
>Question: How do you properly reference a control when

it
>is inside of a frame control. I can manipulate a frame
>control on the page, but cannot seem to reference a
>control within a frame.
>
>I have tried creating a frame object and the referencing
>the controls within that object, but have not had luck

yet.
>
>Documentation seems to be poor in this area. (Or I'm not
>loking in the right spots)
>
>Spinning my wheels and need to get going,
>Patrick
>.
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off