Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable all obejcts in a frame 6

Status
Not open for further replies.

Overdoos

IS-IT--Management
May 31, 2000
79
BE
Hello,

I once knew how to do this, but I forgot and now I need it again :/

OK, here goes...

I have a form containing 3 frames. Each frame contains a number of text-fields and a button. The textfields are (should be) disabled and the button is marked 'Edit'.

When you click the button, the caption becomes 'SAVE' and writes the changed data to the DB (this works). The thing that does not work is enabling all the textfields in the frame upon clicking the 'EDIT'-button and disabling the fields again when the 'SAVE'-button is clicked.

I can do this if I define all required procedures PER frame, but since I have to do nearly the same for 3 different frames, it is clear that I want to call a function in order to do this.

Anybody got an idea how I can address ALL objects contained in a frame in VB6?
 
this works indeed, but doesn't quite fit my needs exactly. It is a better basis to continue working on than my crappy code it seems, so I'll just keep fiddling with this until I get what I want.

Thanks all for the continuing support.
 
MatDavies,

Thank you for the suggestion. I will try to find some more generic approach to handle this exception.

ferretrunner,

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top