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

    CheckBox Object + Array

    Is it possible to store the checkbox object into an array? I haven't found anything on this because I dont think you can.

  2. #2
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039

    Re: CheckBox Object + Array

    I'm not sure which checkbox you are talking about. Nevertheless if you are talking a CheckBox control you have to understand that it is a .NET class like any other. Hency you can put it any collection structure you wish. For example...

    Code:
    var boxes = new CheckBox[] { new CheckBox(), new CheckBox() };

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