CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Location
    Midwest
    Posts
    57

    Question GroupBox problem

    I have a tabControl windows form that uses a templated tree-view control. The template contins some buttons and a group box around three of these buttons. Only on one of my screens do I want to display the groupbox; on the rest I want it to be hidden. I use 'this.groupBox1.Hide()' and this works fine. The problem is in using 'this.groupBox1.Show()', which doesn't show the groupbox. What should I be doing?
    "Judge a man by his questions rather than his answers." - Voltaire

  2. #2
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    Re: GroupBox problem

    Originally posted by sternaphile
    I have a tabControl windows form that uses a templated tree-view control. The template contins some buttons and a group box around three of these buttons. Only on one of my screens do I want to display the groupbox; on the rest I want it to be hidden. I use 'this.groupBox1.Hide()' and this works fine. The problem is in using 'this.groupBox1.Show()', which doesn't show the groupbox. What should I be doing?
    Have you tried calling Show on each of the buttons individually to make sure that there aren't any other problems occuring?
    Jared

  3. #3
    Join Date
    Apr 2001
    Location
    Midwest
    Posts
    57

    Red face

    Oops, please ignore my foolishness. I had added the GroupBox on the first tabbed screen, and didn't carry it over to the screen where I wanted it to be.
    "Judge a man by his questions rather than his answers." - Voltaire

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured