well In my head and on visual too I thinkit's something that contains other control
let's say I want to .visible false 10 textbox, well with a group box I could only .visible = false the group box
Dim fra as Frame
Set fra = Me.FrameControl
fra.Enabled = False
The ActiveX frame control is the closest you can get to the Group Box but it can be a tricky business.
Microsoft Forms 2.0 FrameIncluding the fact that it isn't installed on every machine, so you would have to do so. And, for example, I can't even find it on mine even though I have VB6 installed. It isn't in my ActiveX control list (unless I'm looking for the wrong name).
A tad slow there DavidYou could use the activeX control
Microsoft Forms 2.0 Frame
Dim ctrl As Control
SomeOtherControl.SetFocus
For Each ctrl In Me.Controls
If ctrl.Tag = "Marked" Then
ctrl.Visible = False
End If
End If
Next
Microsoft Forms 2.0 Frame
Ditto!!!I'd go with Linq's suggestion over using an ActiveX control. I avoid them like the plague if I can.
... and I bet you put it in a lot of work to customise it only to find that it didn't work in some enviroments(and I did in one case using an Inet control for downloading documents), I won't use them.
Well, not really but I did have to set up a VB6 install program so it would install the control I needed to any new workstation that might need to use the program.... and I bet you put it in a lot of work to customise it only to find that it didn't work in some enviroments![]()