VB6  frame  equivalent in VB2005

ernartey
ernartey used Ask the Experts™
on

Hi  Folks :
              I am   looking    for  which  control  to  use in vb2005   equivalent  to frame  in Vb6. I tried  the  groupbox   control   however  the   visible   property  does  not  seem to   work well . I Have     four   different  Panel  and  I want  to  hide all  and  use onlu  one at    a  time . Any help   ?
                                          Regards .


                                                           Ernest.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
What did a Frame do that a Panel doesn't do now?  Hiding and showing panels with the .Visible property sounds pretty reasonable to me...
Make sure your controls are actually CHILDREN of the Panel, and not just visually positioned in the same area.  I think VS 2005 does a better job of this, but it was still kinda confusing.  If you have controls that just happen to be in the same area of the screen as a Panel, then obviously hiding the panel will not affect them at all.
groupbox is the equivalent
GroupBox is just a Panel with some decoration on it; an undecorated Panel still has all the same functionality.

Commented:
Basic difference between panel and groupbox are
1) GropuBox Support Caption where as Panel Not
2)Panel Support scrollbar where as GroupBox not

Regarding visible property, it works just check your controls are part of that groupbox or not.

Commented:
Any comment on it  Ernest.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial