Results 1 to 5 of 5

Thread: [RESOLVED] Not sure what type of control I need

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    20

    Resolved [RESOLVED] Not sure what type of control I need

    Hey,

    Like the title say im not sure what type of VB.Net control I need, or will need to customise, but I'll lay out what I want from my design and hopefully someone can point me in the right direction.

    Im going to have a arraylist of the class Person (simple class with the following variables: name, age, gender, and a brief paragraph). What I'd like is to be able to show the user a list of all the instances of the class person in the array list, but for each instance to show all the information its holding in one box/grid.



    So im looking to do something along the lines of whats in the image above. Is there a control already in vb.Net (2008) that will allow this or will I have to look to creating my own, and if so where should I start looking?

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Not sure what type of control I need

    For a layout like that, I think you'll have to make your own/custom control. You could use a ListView but all the info of one record/person would be in one line.

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Not sure what type of control I need

    VB6 has a DataRepeater control. The illustration at that link shows several sorts of controls in the repeated element, you could use Labels or something if you don't want direct input (or to see the control borders, etc.).

    There is probably something similar in VB.Net.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    20

    Re: Not sure what type of control I need

    Thanks...

    Had a look for that data repeater control for vb.net and it seems theres one in the vb.net power pack 3.0 so I'm going to give that a try

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

    Re: Not sure what type of control I need

    If you've installed SP1 for VS 2008 or VB Express 2008 then you already have the DataRepeater control in your Toolbox, as the PowerPacks are installed as part of SP1.
    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

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