CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Posts
    1

    Tab and controls

    How can I get the list of all the controls located on a Tab, if I know the Tab?
    Thx



  2. #2
    Join Date
    Jun 2001
    Location
    Memphis, TN
    Posts
    146

    Re: Tab and controls

    There may be a much nicer way to go about this, but I would just set the Tag property of all controls within a given tab to represent which tab it is in. All controls in the first tab would have a tag that says "Tab1", all controls in the second have "Tab2". that way you should be able to use the Form!Controls collection and check the Tag properties to determine the tab. I hope that solutions helps!

    Jeff


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