|
-
Jun 15th, 2000, 11:11 PM
#1
Thread Starter
Fanatic Member
Hi chaps, anyone tell me a way of disabling everything (or at least all the buttons) within a frame, so they actually look disabled, without having to reference them all? Can it be done with that thing where you go:
Code:
For Each c in frmMyFrame
c.Enabled = False
Next c
or would that be a simply MAAAAAD thing to do. Doesn't seem to work for me anyway, I was just giving suggestions to mislead the young and easily misled. I think I'd better go now...
-
Jun 15th, 2000, 11:29 PM
#2
Hyperactive Member
you could loop thru the controls collection and test the .container property of each control, eg
Dim Ctrl as control
for each ctrl in cotrols
if ctrl.container = <Whatever your frame is called>
ctrl.enabled = false
endif
next ctrl
that should work. (i think...)
-
Jun 16th, 2000, 06:09 AM
#3
Set the Enabled property of the Frame to False. This will disable everything inside of it as well.
-
Jun 18th, 2000, 03:08 PM
#4
Thread Starter
Fanatic Member
Jimbob, thanks mate, worked for me.
Megatron, thanks, but, whilst setting the Frame's enabled property to false does indeed disable everything inside it, they don't LOOK disabled, which was what I was trying to achieve.
Cheers anyway!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|