Robin, Are you using VB6 and the Listview control from that? If memory serves me correctly, the listitems and subitems are 0 based collections. So if you have 3 columns, they should be indexed 0-2. VB6: Debug.Print ListView1.ListItems(0).SubItem(0).Text Debug.Print ListView1.ListItems(0).SubItem(2).Text If you are using Visual Basic 2005, then you need to change your code since the new control has an Items collection, not a ListItems collection. Here is code for.Net. VB2005: Debug.Print(ListView1.Items(0).SubItems(0).Text) ListView1.Items(0).SubItems(0).Text = 'foo' Adam Braden Visual Basic Team. Robin, Are you using VB6 and the Listview control from that? If memory serves me correctly, the listitems and subitems are 0 based collections. So if you have 3 columns, they should be indexed 0-2. Edit Listview Subitem C#VB6: Debug.Print ListView1.ListItems(0).SubItem(0).Text Debug.Print ListView1.ListItems(0).SubItem(2).Text If you are using Visual Basic 2005, then you need to change your code since the new control has an Items collection, not a ListItems collection. Here is code for.Net. VB2005: Debug.Print(ListView1.Items(0).SubItems(0).Text) ListView1.Items(0).SubItems(0).Text = 'foo' Adam Braden Visual Basic Team. Click here to download: Download(FREE) Run Nox App Player Android Emulator and login Google Play Store Open Google Play Store and search Black iron launcher theme Download Install Black iron launcher theme and start it Well done! Download theme windows 7 for xp. ▶ Notice – Launcher Planet is available on Android OS 4.0.2 and higher – Launcher Planet could be unstable depending on the condition of the device – Launcher Planet is not applicable to tablets at the moment. With simple, fast, and reliable service, anyone can have a personally customized mobile HOME. ✔ Service Card: Personalized Full Screen Widgets for quick access to Contacts, Weather and more. ▶ Contact us – If you have any feedback or comment, please contact us: [email protected] ▶ Launcher Planet Official Website – Homepage: www.launcherplanet.com How to play Black iron launcher theme on PC Download and Install Nox App Player Android Emulator. Listview Subitem ImageOk, so I have a listview on one form, and when a button is pressed it opens up a new form with the contents of the selected listview item and it's subitems in a series of textboxes. The user can then change the data in the textboxes and either press save to make the changes or cancel to close the window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |