Select to view content in your preferred language

make visible pages

1984
1
10-26-2011 07:17 AM
by Anonymous User
Not applicable
Original User: Sarah83

Hi,

I would like to know if you can say
page.Visible = false ?
Or do I have to use my controls at this page (Control.Visible = False)?

This is not working:
Set page3 = Layers("ABC").Forms("EDITFORM").Pages("Page3")
page3.Visible = false

Or is it a better approach to have two different forms instead of one changing visibility of a page?

Thanks for any suggestions!
Tags (4)
0 Kudos
1 Reply
TimHopper
Frequent Contributor
Sarah,

The "page" object does not have a visibility property.  You only have the ability to change the visibility of the following objects via code:

StatusBar
Console
Control
Layer
ToolBar

The syntax for the above objects is:

object.Visible = False

So, to turn off the visibility for a particular control you would use:

ThisEvent.Object.Pages("page1").Controls("txtControl").Visible = False

If you simply have a page or two that you don't ever want to show you can delete the page via the Page menu of the edit form.

I'm not 100% sure of the exact output you're looking for, so any additional insight would be helpful.
0 Kudos