Advertisement

05.11.2005 at 08:13AM PDT, ID: 21420564
[x]
Attachment Details

Enable and/or Disable other controls on a Frame Control

Asked by RDWaibel in VB Controls

Tags: controls, disable, enable

Here is the Question/issue:
I have a form with two Frames (frmMain, fraLead, fraTour).  What I am wanting to be able to do here is only affect those controls on one of the frames. I tried teh following:

Private sub LockDownFrame(fra as frame)
  Dim ctl as control
  For each ctl in fra.container
    ctl.enabled = false
  next ctl
  set ctl = nothing
end sub

Now, this code WILL disable ALL of my controls, Not just the ones on the frame.

Ideas???

/RobStart Free Trial
 
Loading Advertisement...
 
[+][-]05.11.2005 at 08:15AM PDT, ID: 13978780

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: VB Controls
Tags: controls, disable, enable
Sign Up Now!
Solution Provided By: TimCottee
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.11.2005 at 08:17AM PDT, ID: 13978811

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32