Is there a way to get a ListView control to fire its
SelectedIndexCh anged event like the ListBox control? When the user
selects multiple items at once, the ListView fires the event as each
item gets selected. The ListBox waits to fire the event until all
selections are complete.
Thanks,
Mike 6 4718
"Mike" <ML****@hotmail .comwrote in message
news:26******** *************** ***********@r37 g2000prr.google groups.com...
Is there a way to get a ListView control to fire its
SelectedIndexCh anged event like the ListBox control? When the user
selects multiple items at once, the ListView fires the event as each
item gets selected. The ListBox waits to fire the event until all
selections are complete.
It does? How do it KNOW that the selections are complete?
(I, for one, welcome our new telepathic list box overlords....)
On Nov 18, 4:32*pm, "Jeff Johnson" <i....@enough.s pamwrote:
"Mike" <MLM...@hotmail .comwrote in message
news:26******** *************** ***********@r37 g2000prr.google groups.com...
Is there a way to get a ListView control to fire its
SelectedIndexCh anged event like the ListBox control? When the user
selects multiple items at once, the ListView fires the event as each
item gets selected. The ListBox waits to fire the event until all
selections are complete.
It does? How do it KNOW that the selections are complete?
(I, for one, welcome our new telepathic list box overlords....)
How could it not know? If I click on the first of 100 items and then
shift-click the last item, I think the control needs to know it is
selecting all 100 items or else how could it do it?
"Mike" <ML****@hotmail .comwrote in message
news:c1******** *************** ***********@a3g 2000prm.googleg roups.com...
>>Is there a way to get a ListView control to fire its SelectedIndex Changed event like the ListBox control? When the user selects multiple items at once, the ListView fires the event as each item gets selected. The ListBox waits to fire the event until all selections are complete.
>It does? How do it KNOW that the selections are complete?
>(I, for one, welcome our new telepathic list box overlords....)
How could it not know? If I click on the first of 100 items and then
shift-click the last item, I think the control needs to know it is
selecting all 100 items or else how could it do it?
Well, you didn't specify what type of multi-selection you were using.
There's also the type where you can Ctrl+click items, and do it as many
times as you want.
And you're saying that the first click (on the "anchor" item) doesn't fire
SelectedIndexCh anged? I'm having difficulty believing that.
On Nov 18, 4:59*pm, "Jeff Johnson" <i....@enough.s pamwrote:
"Mike" <MLM...@hotmail .comwrote in message
news:c1******** *************** ***********@a3g 2000prm.googleg roups.com...
>Is there a way to get a ListView control to fire its SelectedIndexC hanged event like the ListBox control? When the user selects multiple items at once, the ListView fires the event as each item gets selected. The ListBox waits to fire the event until all selections are complete.
It does? How do it KNOW that the selections are complete?
(I, for one, welcome our new telepathic list box overlords....)
How could it not know? If I click on the first of 100 items and then
shift-click the last item, I think the control needs to know it is
selecting all 100 items or else how could it do it?
Well, you didn't specify what type of multi-selection you were using.
There's also the type where you can Ctrl+click items, and do it as many
times as you want.
And you're saying that the first click (on the "anchor" item) doesn't fire
SelectedIndexCh anged? I'm having difficulty believing that.
First, I said this is when they select multiple "at once". Sorry that
wasn't clear enough for you, but the shift-click is the only way I'm
aware of to do that. With ctrl+click, you pick items one at a time,
not all at once.
Second, I never said that the first click doesn't fire the event. I am
only talking about the shift-click situation. Again, that single click
is not selecting multiple items at one time.
"Mike" <ML****@hotmail .comwrote in message
news:37******** *************** ***********@k1g 2000prb.googleg roups.com...
First, I said this is when they select multiple "at once". Sorry that
wasn't clear enough for you, but the shift-click is the only way I'm
aware of to do that. With ctrl+click, you pick items one at a time,
not all at once.
Welcome to the ambiguity of the English language. To you, "at once" meant in
a single action. To me, it meant "without doing anything else in the
application in-between, like clicking on a button." Saying "Shift+clic k," as
you did in your first reply, makes it perfectly clear, though, and now we're
on the same page, although ultimately I don't think you're going to get the
answer you want.
On Nov 18, 5:19*pm, "Jeff Johnson" <i....@enough.s pamwrote:
"Mike" <MLM...@hotmail .comwrote in message
news:37******** *************** ***********@k1g 2000prb.googleg roups.com...
First, I said this is when they select multiple "at once". Sorry that
wasn't clear enough for you, but the shift-click is the only way I'm
aware of to do that. With ctrl+click, you pick items one at a time,
not all at once.
Welcome to the ambiguity of the English language. To you, "at once" meantin
a single action. To me, it meant "without doing anything else in the
application in-between, like clicking on a button." Saying "Shift+click,"a s
you did in your first reply, makes it perfectly clear, though, and now we're
on the same page, although ultimately I don't think you're going to get the
answer you want.
Yeah, I looked around quite a bit for this already and came up empty.
Just thought I'd post the question as a last resort in case anybody
had an idea. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mad |
last post by:
Hello to all, I am new to vb6 and I have been trying to make a listbox with
a horizontal and vertical scrollbar. For example, like the one on the
program Address book that is found on all Windows operating systems. Is it
possible to do it on VB6?
Any help will be greatly appreciated.
|
by: Bernie Yaeger |
last post by:
I now know how to gather the file type icons and I'm able to use them in a
listview. But a listbox does not have a .smallimagelist or .largeimagelist
member, so I don't know how to translate that so that I have the icon + the
string in a listbox. Is this possible, and if so, can you give me some idea
how to go about it.
Thanks for any help.
Bernie Yaeger
|
by: Kanaiya |
last post by:
hello
how to put images in either listbox or listview.bye.
--
With regards,
Gangani Kanaiya.
|
by: Chris |
last post by:
I'm able to add a context menu to the right click on a listbox but it
does not select the item in the listbox. I would like the context
menu before it pops up to select the item that the mouse was over when
the right click occurred. Is this possible?
Thanks,
Cristov
|
by: John R. |
last post by:
I want to have a listbox that shows a checkbox and a textbox.
I created a user control that has a checkbox and a textbox in it and have
been trying to add it to a listbox but I can't get it to show up for each
item I add to the listbox.
foreach (Column column in columns)
{
ColumnsListBox.Items.Add(column.Name);
ColumnsListBox.Controls.Add(new ColumnListControl(true, column.Name,
| |
by: CR |
last post by:
In VB6 if I wanted to display a group of records, and possibly allow
the user to select one or more records, I would use the ListBox. For
example suppose I wanted to display something like this:
Name Address Phone Number
Johnson 111 South Av 111-1111
Smith 222 Main St 222-2222
In VB6 I would use a label and a listbox. The label would contain the
header. To make the columns line up in the listbox I would use a
|
by: Melson |
last post by:
Hi
May I know what is the differences between vb.net listbox and listview. When
should I use listbox or listview.
Regards
Melson
|
by: thomasp |
last post by:
Has anyone got some sample code to do drag and drop from one listbox to
another listbox using VB.Net 2005. The below code works for draging and
droping one at a time, but not for multiselected items. I tried setting up
an array to capture the selected items and then move them with the dragndrop
code, but after selecting the items when the user clicks on the items to
drag them the selection goes back to one item. Also I have code for the...
|
by: The Confessor |
last post by:
I currently have a listbox in my program which I populate with data from
a random access file as follows:
For T = 1 To HighestPointID
FileGet(1, Point(T), T)
ListBox_Point.Items.Add(T & " Lat: " & Point(T).Latitude...)
Next
I end up with data in the following format in each ListBox line.
1 Lat: 42.5003, Long: -70.9249, Ele 161
|
by: markliam |
last post by:
I have a ListBox that is displaying a formatted string based on the
contents of a DataSet. The purpose of the listbox is for the user to
select an entry to delete, but I'm not sure how to match the listbox
entry with the corresponding DataRow.
The DataRow contains a unique id, but the id is not displayed in the
formatted string that appears in the listbox. Is there a way to
associate the id of the DataRow with the Listbox item so I...
|
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...
| |
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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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();...
| |
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...
|
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...
| |