Setting Properties - Design View vs Form View 
Author Message
 Setting Properties - Design View vs Form View

Hi

1)      If you set a property, say, backcolor, programmatically, when the form
is in form view, switch back to design view and then back to form view, the
property setting reverts to its original value.

2)      If you set a property in design view, then that value always holds
whatever view you are in.

Is there a programmatic equivalent of 2) above without switching to design
view, setting the property and then switching back.

Thanks in advance




Sat, 04 Sep 1999 03:00:00 GMT  
 Setting Properties - Design View vs Form View

Hi Simon,

You can use 1) in the onOpen event. So, for all practical points of view,
the end effect will be the same.  You can also open the form in design view
by programation, and CreateControl or modify them (that is how the wizards
do, but this is  a little bit "slow"):

DoCmd.OpenForm "Form1", acDesign

Hope it may help,
Vanderghast



Quote:
>...
> Hi

> 1) If you set a property, say, backcolor, programmatically, when the form
> is in form view, switch back to design view and then back to form view,
the
> property setting reverts to its original value.

> 2)         If you set a property in design view, then that value always holds
> whatever view you are in.

> Is there a programmatic equivalent of 2) above without switching to
design
> view, setting the property and then switching back.

> Thanks in advance





Sun, 05 Sep 1999 03:00:00 GMT  
 Setting Properties - Design View vs Form View

I don't think so (certainly for Access 2.0).

(ie run time changes are transient, design time changes can be saved (made
permanent)).
You can only get to design mode by using

Docmd Openform ..... A_DESIGN


HTH
--
Steve Sarre
SIS
London UK



Sat, 18 Sep 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. custom form control: Cannot view design view of forms that inherit this form

2. Can't open VB.NET form in design view (only get code view)

3. Controls Disappear in VS.NET Form Design view

4. Unable to Design tablles, view and stored procs etc using Data View

5. Single View vs Continious View

6. Format Properties under Table Design View

7. Setting focus from code in design view.

8. design form view

9. Invalid URL error when trying to open web form in design view

10. Urgent help - Error while opening Form design view on MS Visual Basic.Net

11. Form View/Table View

12. Form view / datasheet view, subform only

 

 
Powered by phpBB® Forum Software