Results 1 to 4 of 4

Thread: [RESOLVED] GroupBox Help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2011
    Posts
    3

    Resolved [RESOLVED] GroupBox Help!

    Hello,

    I am currently creating a program for my own use but I need some information about groupboxes. I have 3 groupboxes with each some checkboxes in them. My question is: How do i get the number of objects (checkboxes) in a groupbox. I tried looking for the index like in a listbox but it isn't part of the controls. HELP!

    Thank you in advance

    Im2be

  2. #2
    Member
    Join Date
    Mar 2011
    Posts
    54

    Re: GroupBox Help!

    Never Mind.
    Last edited by itzme96; Apr 3rd, 2011 at 05:25 AM.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: GroupBox Help!

    Simplest option:
    vb.net Code:
    1. Dim checkBoxCount = myGroupBox.Controls.OfType(Of CheckBox)().Count()
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2011
    Posts
    3

    Re: GroupBox Help!

    Thanks!

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