Solved

Enable and disable

Posted on 1998-11-18
10
170 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

828 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