473,624 Members | 2,238 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ListView Control in Visual Basic 6

AaronL
99 New Member
Hello everyone,

I am having tons of issues with the ListView control in Visual Basic 6.0.

I figured out how to add column headers and add items and subitems, however what I would like to do is be able to edit the subitems at runtime. You can edit the first field in my program but if you click on the second column etc... you can't edit those. Can someone explain this to me? My brain is going to explode I don't know why they make this control so difficult to use.

Thanks!
Aug 10 '09 #1
4 3357
debasisdas
8,127 Recognized Expert Expert
kindly post the code that you are working on ?
Aug 11 '09 #2
AaronL
99 New Member
The only code is what enters the data

Expand|Select|Wrap|Line Numbers
  1. 'Load webpage file data
  2. Set WPLI = wplvw.ListItems.Add(, , "Google")
  3.     WPLI.SubItems(1) = "Yes"
  4.     WPLI.SubItems(2) = "www.google.com"
  5.     WPLI.SubItems(3) = "11:00:00"
  6.     WPLI.SubItems(4) = "5 mins"
  7.     WPLI.SubItems(5) = "Yes"
  8.  
At runtime you can only edit the first field aka the label and not the subitems
Aug 11 '09 #3
CyberSoftHari
487 Recognized Expert Contributor
use controls for your requirements.
listview is for view, select and, checks rows for data operations.
you can use 'DATA GRID' to edit column, or you can programme with flex grid and text box.
Aug 17 '09 #4
AaronL
99 New Member
I was afraid of that, thanks...
Aug 19 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
21233
by: John Lauwers | last post by:
I know you can edit the first column of the listview control, is there a way to edit the second and/or the other columns? greets John
8
22296
by: Jon Ripley | last post by:
Using VB6 (for two weeks!) I could get a ListBox search working perfectly but with a ListView it has completely stumped me. I've not found any previous posts that have helped :( The user enters a string into a text box (txtStreet) and as they type any matching entry in the listview (lsvStreets) is highlighted and made visible. The search highlights the first item starting with the text in txtStreet. The listview contains 6,000 rows...
0
1770
by: Randy Birch | last post by:
re: MSComCtl Listview control cashes after installing VB6/VS6 SP6 I have been advised that this problem has been reproduced and a hotfix has been prepared. The supporting KB article and hotfix download link have yet to be posted, but I can provide you with the following information for those requiring an immediate fix: "If a customer needs the hotfix immediately they can open a call with Microsoft Product Support Services (PSS) and...
2
11100
by: Randy Birch | last post by:
Reposted as the original is reported as deleted from the server. re: MSComCtl Listview control cashes after installing VB6/VS6 SP6 I have been advised that this problem has been reproduced and a hotfix has been prepared. The supporting KB article and hotfix download link have yet to be posted, but I can provide you with the following information for those requiring an immediate fix:
3
15714
by: larry mckay | last post by:
anyone have the code to select and listview item or row (subitems) after a doubleclick event from a listview. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
6
4899
by: Ken | last post by:
I have a listview with 24 rows and 150 columns. I update 3 rows every 10 seconds. 1 2 3 4 ... 150 row1 row2 row3 row4 .. ..
1
1054
by: dev.amit | last post by:
Hello Friends I am having a listview of three column. I want to short it on the individual column. Any help would be great. Love Amit
1
2060
by: DhavalPatel1983 | last post by:
Hi, I need help in VB for handling Listview control. Problem Discription I have one listview control. now i want to develop one application which entered data in to listview control at runtime like Excel sheet.
1
1938
by: FireFlux | last post by:
Inherit the Listview Control with Visual Basic ? I have decided do inherit the Listview control some days ago to change some painting things to make the .net Listview look like the explorer's Listview. I am very new on doing those things like painting and also have not much practise with inheriting , so I got some problems while I tried to change the Control to that Listview I like. Here are my Questions : - Can I run a method if...
0
8233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8170
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8675
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6108
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.