General information
Category:
Forms & Form designer
>Could anyone give any tips on or point me towards some info on a method of "locking" the controls on a form to prevent data from being changed.
>
>I would like to have an "edit" button that a user must push to then begin editting.
>
>Textboxes are very easy. I can drop them onto a pageframe and then enable and disable the pageframe. If combobox is on the pageframe, it will continue to be enabled.
>
>TIA.
In a manner similar to Mr Stowell's and Mr Booth's, I have a method that is in my form template class called .SetControlsEnabled(). It accepts two parameters, the first is a reference to a container object (form, page, container) and the second is either .T. or .F. depending on what I need the .Enabled property of the contained controls to be. The method loops through all the controls contained on whatever was passed in setting the .Enabled property.
Steve
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only