dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: ListView Control

  1. #1
    Aileen Guest

    ListView Control


    i'm new in vb. In my program, i uses Listview control (which set to report
    view), and my problem is:

    1) i use the "lvwList.SelectedItem", but when i first time go to the form,
    it doesn't highlight any record, but it still return me the first selection,
    why?

    thanks for help!

  2. #2
    Larry Rebich Guest

    Re: ListView Control

    Aileen:

    Some months ago I wrote a tip of the month that I call 'ListView Basics'.
    Link to http://www.buygold.net/tips then look for the July 2000 tip of the
    month. A sample program is provided. From the tip's intro:

    I have noted lots of posted questions in various news groups requesting
    information about the ListView control. So I created a very small demo which
    I zipped and placed on my web site in June 2000. There have been a lot of
    'downloads' of the demo so I decided to expand it and make it the
    tip-of-the-month.

    The ListView was introduced with Windows 95 as the 'right' side of
    Explorer. It was made available with VB4 32-bit. It is now available in VB6
    as the Microsoft Windows Common Controls 6.0 OCX. The demo uses that version
    so you will need a copy if you want to run the demo. I used the SP3 version
    but I think earlier VB 6 versions will work.

    In your specific case you need to set one of the items selected, for
    example:

    Me.ListView1.ListItems(1).Selected = True

    Cheers,
    Larry Rebich

    More tips link to:
    http://www.buygold.net/tips

    Please:
    No personal e-mail questions :-)


    "Aileen" <aileen123@hotmail.com> wrote in message
    news:3c84bfed$1@10.1.10.29...
    >
    > i'm new in vb. In my program, i uses Listview control (which set to report
    > view), and my problem is:
    >
    > 1) i use the "lvwList.SelectedItem", but when i first time go to the form,
    > it doesn't highlight any record, but it still return me the first

    selection,
    > why?
    >
    > thanks for help!




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center