Solved

Enable and disable

Posted on 1998-11-18
10
166 Views
Last Modified: 2010-05-03
I have some strange problems that I need some assistance with. I have an SSTab with alot of different frames on it, My problem is that when i enable some frames on one tab a few other controls on the other tabs gets enabled too, why? Is it a bug or a feature?
0
Comment
Question by:slobstar
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 14

Expert Comment

by:waty
ID: 1445381
Probably the reason is that the controls have the this tab has parent.

You should add all the controls in a frame, and have only one frame per tab.
0
 
LVL 1

Author Comment

by:slobstar
ID: 1445382
If I want several frames then...
0
 
LVL 1

Expert Comment

by:wford
ID: 1445383
Put thes frmaes inside your tab frame..or you can use any other container type object as your tab frame
0
 
LVL 1

Author Comment

by:slobstar
ID: 1445384
I've tried it but there are still controls that enables when I don't want them to. Can anyone explain why and how I can prevent it, I want several frames on each of the tabs.
0
 
LVL 1

Expert Comment

by:wford
ID: 1445385
Are your frames set as enabled = false even though they are children to the tabs?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:slobstar
ID: 1445386
I set all my frames and the controls inside them to false at design time, then I want to be able to enable different frames at run time.
0
 
LVL 14

Expert Comment

by:waty
ID: 1445387
If you set the frame to disable, all the controls inside are disabled.
0
 
LVL 1

Author Comment

by:slobstar
ID: 1445388
Well thats not really true, it's true that you can't do anything with them, but they are not disabled. I already solved this myself, its was really strange maybe you know why: If my frames  had the same "Caption" then they gave me alot of trouble, it didn't matter that they had different names. hmmm  Waty! just give me an answer and the points is yours.
0
 
LVL 18

Accepted Solution

by:
mdougan earned 20 total points
ID: 1445389
Go back to one of the first answers, when a control becomes unusable (not really disabled) when you disable a frame or other type of container control, then it is most likely that the container control (frame, picture box etc) is the parent of the control.  The easiest way to ensure that the control has the parent you want it to have, is to highlight it and cut it to the clipboard.  Then, highlight the frame that you want to be the parent of the control, then paste.  Remember, if you create a control, then drag it onto a frame, the frame will not be it's parent.  

MD
0
 
LVL 1

Expert Comment

by:wford
ID: 1445390
mdougan:

slobstar asked waty to answer for the points. I assume it was a mistake of yours to answer this question. slobstar should reject IMHO.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now