Results 1 to 3 of 3

Thread: building tabpages with listview..

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2003
    Location
    Amsterdam, The Netherlands
    Posts
    53

    building tabpages with listview..

    I am working on an application where I want to create tabpages with a listview on them in which I display the content of a section of either an INI file or a XML.. I am having some trouble figuring out the best way to do this.. So far I guess it's sort of like:

    setup listview
    setup tabpage
    setup listview to display on tabpage..

    I can however not figure out how to use 1 (string)variable (named Group) to setup a unique listview (lstGroup) and tabpage (tabGroup) Right now I pass the groupname to the code building the tabpage and listview three times as in : call buildtab(Group, Group, Group) ... There must be a way to use 1 unique name and convert that from a string to a listview to a tabpage right?

    probably a simple solution, but I just seem to be missing it..

    any help as always much appreciated..

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Perhaps you could create your own tabpage (inheriting from Windows.TabPage), which exposes a listview, or a collection of listviews, as a property of the TabPage.

    So you can have code to the effect of:
    VB Code:
    1. MyTabPage.ListViews.Add()
    2.  MyListView = MyTabPage.ListViews(i)

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2003
    Location
    Amsterdam, The Netherlands
    Posts
    53
    I think I understand what you are saying, but have no idea how to do this.. any pointers as to where I can find information on this?

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